Documentation
¶
Overview ¶
Package agent composes tool registrations and seals them into the same execution catalog used for model discovery and dispatch.
Index ¶
- func WithToolInvocation(ctx context.Context, invocation ToolInvocation) (context.Context, error)
- type Admission
- type AdmittedAgent
- type BaseAgent
- func (a *BaseAgent) AgentType() string
- func (a *BaseAgent) CatalogSnapshot(version string) (execution.CatalogSnapshot, error)
- func (a *BaseAgent) HasTool(name string) bool
- func (a *BaseAgent) Register(spec execution.ToolSpec) error
- func (a *BaseAgent) Seal(admission Admission) (*AdmittedAgent, error)
- func (a *BaseAgent) ToolCount() int
- func (a *BaseAgent) ToolNames() []string
- type ToolAgent
- type ToolInvocation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithToolInvocation ¶
Types ¶
type Admission ¶
type Admission struct {
CatalogVersion string
Policy policy.Snapshot
Ledger execution.AttemptLedger
Approver execution.Approver
Approvals execution.ApprovalStore
}
type AdmittedAgent ¶
type AdmittedAgent struct {
// contains filtered or unexported fields
}
func (*AdmittedAgent) AgentType ¶
func (a *AdmittedAgent) AgentType() string
func (*AdmittedAgent) ExecuteTool ¶
func (*AdmittedAgent) HasTool ¶
func (a *AdmittedAgent) HasTool(name string) bool
func (*AdmittedAgent) ToolCount ¶
func (a *AdmittedAgent) ToolCount() int
func (*AdmittedAgent) ToolNames ¶
func (a *AdmittedAgent) ToolNames() []string
type BaseAgent ¶
type BaseAgent struct {
// contains filtered or unexported fields
}
BaseAgent is a registration builder. It deliberately cannot execute tools; Seal produces an AdmittedAgent pinned to policy and catalog snapshots.
func (*BaseAgent) CatalogSnapshot ¶
func (a *BaseAgent) CatalogSnapshot(version string) (execution.CatalogSnapshot, error)