Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HooksConfig ¶
type HooksConfig struct {
PreDispatch []string `yaml:"pre_dispatch"`
PostClose []string `yaml:"post_close"`
}
HooksConfig defines pre/post lifecycle hooks.
type StorageConfig ¶
type StorageConfig struct {
Backend string `yaml:"backend"` // "separate-repo" or "in-repo"
CaseRepoPath string `yaml:"case_repo_path"` // relative path to case repo
}
StorageConfig controls where case records are stored.
type Strategy ¶
type Strategy struct {
Root string // absolute path to project root (parent of .agentops/)
Storage StorageConfig
Transitions TransitionsConfig
Risk map[string]any
Routing map[string]any
Budget map[string]any
Hooks HooksConfig
SchemaTemplate string // raw content of schema.md
}
Strategy holds the fully loaded .agentops/ configuration.
type TransitionDef ¶
TransitionDef describes one allowed state transition.
func (TransitionDef) FromStates ¶
func (t TransitionDef) FromStates() []string
FromStates returns the from states as a string slice.
type TransitionsConfig ¶
type TransitionsConfig struct {
Categories map[string][]string `yaml:"categories"`
Initial string `yaml:"initial"`
Transitions map[string]TransitionDef `yaml:"transitions"`
}
TransitionsConfig defines the state machine for case lifecycle.
Click to show internal directories.
Click to hide internal directories.