Documentation
¶
Index ¶
- Variables
- type AgentState
- type CommitEvaluator
- type ConflictEvaluator
- type Evaluator
- type Executor
- type ExplainEvaluator
- type LLMPlanner
- type Option
- func WithAI(c *ai.Client) Option
- func WithApproval(a *approval.Manager) Option
- func WithEvaluator(e Evaluator) Option
- func WithExecutor(e *Executor) Option
- func WithLogger(l *observability.Logger) Option
- func WithLongTerm(s *memory.Store) Option
- func WithMaxSteps(n int) Option
- func WithPlanner(p Planner) Option
- func WithSession(s *memory.Session) Option
- func WithTools(reg *tools.Registry) Option
- type Orchestrator
- type Planner
- type RiskEvaluator
- type Step
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMaxStepsExceeded = errors.New("agent exceeded max steps without converging")
View Source
var ErrUserDenied = errors.New("user denied action")
Functions ¶
This section is empty.
Types ¶
type AgentState ¶
type CommitEvaluator ¶
type CommitEvaluator struct{}
func (CommitEvaluator) FailThreshold ¶
func (e CommitEvaluator) FailThreshold() float64
func (CommitEvaluator) IsValid ¶
func (e CommitEvaluator) IsValid(action, output string) bool
func (CommitEvaluator) PassThreshold ¶
func (e CommitEvaluator) PassThreshold() float64
func (CommitEvaluator) Score ¶
func (e CommitEvaluator) Score(action, output string) float64
type ConflictEvaluator ¶
type ConflictEvaluator struct{}
func (ConflictEvaluator) FailThreshold ¶
func (e ConflictEvaluator) FailThreshold() float64
func (ConflictEvaluator) IsValid ¶
func (e ConflictEvaluator) IsValid(action, output string) bool
func (ConflictEvaluator) PassThreshold ¶
func (e ConflictEvaluator) PassThreshold() float64
func (ConflictEvaluator) Score ¶
func (e ConflictEvaluator) Score(action, output string) float64
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
func NewExecutor ¶
func (*Executor) RegisterTool ¶
type ExplainEvaluator ¶
type ExplainEvaluator struct{}
func (ExplainEvaluator) FailThreshold ¶
func (e ExplainEvaluator) FailThreshold() float64
func (ExplainEvaluator) IsValid ¶
func (e ExplainEvaluator) IsValid(_, output string) bool
func (ExplainEvaluator) PassThreshold ¶
func (e ExplainEvaluator) PassThreshold() float64
func (ExplainEvaluator) Score ¶
func (e ExplainEvaluator) Score(action, output string) float64
type LLMPlanner ¶
type Option ¶
type Option func(*Orchestrator)
func WithApproval ¶
func WithEvaluator ¶
func WithExecutor ¶
func WithLogger ¶
func WithLogger(l *observability.Logger) Option
func WithLongTerm ¶
func WithMaxSteps ¶
func WithPlanner ¶
func WithSession ¶
type Orchestrator ¶
type Orchestrator struct {
Planner Planner
Executor *Executor
Evaluator Evaluator
Approval *approval.Manager
Logger *observability.Logger
AI *ai.Client
LongTerm *memory.Store
SessionMemory *memory.Session
MaxSteps int
}
func New ¶
func New(opts ...Option) *Orchestrator
type RiskEvaluator ¶
type RiskEvaluator struct{}
func (RiskEvaluator) FailThreshold ¶
func (e RiskEvaluator) FailThreshold() float64
func (RiskEvaluator) IsValid ¶
func (e RiskEvaluator) IsValid(_, output string) bool
func (RiskEvaluator) PassThreshold ¶
func (e RiskEvaluator) PassThreshold() float64
func (RiskEvaluator) Score ¶
func (e RiskEvaluator) Score(_, output string) float64
Click to show internal directories.
Click to hide internal directories.