Documentation
¶
Index ¶
- func Definition(style loop.DelegationStyle, catalog []AgentCatalogEntry, ...) tool.Definition
- type AgentCatalogEntry
- type ListAgentsTool
- func (*ListAgentsTool) AuditSummary(string) string
- func (s *ListAgentsTool) Info(context.Context) (*tool.ToolInfo, error)
- func (s *ListAgentsTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)
- func (s *ListAgentsTool) PrepareCall(_ context.Context, _ uuid.UUID, argsJSON string) (tool.Request, tool.PreparedArtifact, error)
- type MessageAgentTool
- func (*MessageAgentTool) AuditSummary(string) string
- func (s *MessageAgentTool) Info(context.Context) (*tool.ToolInfo, error)
- func (s *MessageAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)
- func (s *MessageAgentTool) PrepareCall(_ context.Context, _ uuid.UUID, argsJSON string) (tool.Request, tool.PreparedArtifact, error)
- type PreparedListAgents
- type PreparedMessageAgent
- type PreparedStartAgent
- type PreparedStopAgent
- type StartAgentTool
- func (*StartAgentTool) AuditSummary(string) string
- func (s *StartAgentTool) Info(context.Context) (*tool.ToolInfo, error)
- func (s *StartAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)
- func (s *StartAgentTool) PrepareCall(ctx context.Context, _ uuid.UUID, argsJSON string) (tool.Request, tool.PreparedArtifact, error)
- type StopAgentTool
- func (*StopAgentTool) AuditSummary(string) string
- func (s *StopAgentTool) Info(context.Context) (*tool.ToolInfo, error)
- func (s *StopAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)
- func (s *StopAgentTool) PrepareCall(_ context.Context, _ uuid.UUID, argsJSON string) (tool.Request, tool.PreparedArtifact, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Definition ¶
func Definition(style loop.DelegationStyle, catalog []AgentCatalogEntry, runtimeCatalog ...loop.RuntimeCatalog) tool.Definition
Definition binds the harness-owned agent collaboration tools to one parent Loop.
Types ¶
type AgentCatalogEntry ¶
AgentCatalogEntry is one child capability advertised to StartAgent.
type ListAgentsTool ¶
type ListAgentsTool struct {
// contains filtered or unexported fields
}
ListAgentsTool is the ListAgents agent tool for inspecting owned child agents.
func NewListAgents ¶
func NewListAgents(controller tool.DelegateController, style loop.DelegationStyle, catalog []AgentCatalogEntry, runtimeCatalog ...loop.RuntimeCatalog) *ListAgentsTool
NewListAgents constructs a ListAgents agent tool with the supplied delegation policy and catalogs.
func (*ListAgentsTool) AuditSummary ¶
func (*ListAgentsTool) AuditSummary(string) string
func (*ListAgentsTool) InvokableRun ¶
func (s *ListAgentsTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)
func (*ListAgentsTool) PrepareCall ¶
type MessageAgentTool ¶
type MessageAgentTool struct {
// contains filtered or unexported fields
}
MessageAgentTool is the MessageAgent agent tool for sending work to a child agent.
func NewMessageAgent ¶
func NewMessageAgent(controller tool.DelegateController, style loop.DelegationStyle, catalog []AgentCatalogEntry, runtimeCatalog ...loop.RuntimeCatalog) *MessageAgentTool
NewMessageAgent constructs a MessageAgent agent tool with the supplied delegation policy and catalogs.
func (*MessageAgentTool) AuditSummary ¶
func (*MessageAgentTool) AuditSummary(string) string
func (*MessageAgentTool) InvokableRun ¶
func (s *MessageAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)
func (*MessageAgentTool) PrepareCall ¶
type PreparedListAgents ¶
PreparedListAgents contains validated ListAgents arguments ready for delegation.
type PreparedMessageAgent ¶
type PreparedMessageAgent struct {
AgentID uuid.UUID
Message string
WaitForResponse bool
TimeoutSeconds *int
}
PreparedMessageAgent contains validated MessageAgent arguments ready for delegation.
type PreparedStartAgent ¶
type PreparedStartAgent struct {
AgentType string
Name string
Instructions string
WaitForResponse bool
TimeoutSeconds *int
AgentHarness string
AgentSource string
Model string
Effort *string
AgentMode string
Runtime *tool.DelegateRuntime
// contains filtered or unexported fields
}
PreparedStartAgent contains validated StartAgent arguments ready for delegation.
type PreparedStopAgent ¶
PreparedStopAgent contains validated StopAgent arguments ready for delegation.
type StartAgentTool ¶
type StartAgentTool struct {
// contains filtered or unexported fields
}
StartAgentTool is the StartAgent agent tool for creating child agents.
func NewStartAgent ¶
func NewStartAgent(controller tool.DelegateController, style loop.DelegationStyle, catalog []AgentCatalogEntry, runtimeCatalog ...loop.RuntimeCatalog) *StartAgentTool
NewStartAgent constructs a StartAgent agent tool with the supplied delegation policy and catalogs.
func (*StartAgentTool) AuditSummary ¶
func (*StartAgentTool) AuditSummary(string) string
func (*StartAgentTool) InvokableRun ¶
func (s *StartAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)
func (*StartAgentTool) PrepareCall ¶
type StopAgentTool ¶
type StopAgentTool struct {
// contains filtered or unexported fields
}
StopAgentTool is the StopAgent agent tool for interrupting a child agent.
func NewStopAgent ¶
func NewStopAgent(controller tool.DelegateController, style loop.DelegationStyle, catalog []AgentCatalogEntry, runtimeCatalog ...loop.RuntimeCatalog) *StopAgentTool
NewStopAgent constructs a StopAgent agent tool with the supplied delegation policy and catalogs.
func (*StopAgentTool) AuditSummary ¶
func (*StopAgentTool) AuditSummary(string) string
func (*StopAgentTool) InvokableRun ¶
func (s *StopAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)