Help us shape the future of Go! Take the 2026 Go Developer Survey

delegationtool

package
v0.30.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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

type AgentCatalogEntry struct {
	Name        identity.AgentName
	Description string
	Modes       []loop.ModeName
}

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) Info

func (*ListAgentsTool) InvokableRun

func (s *ListAgentsTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)

func (*ListAgentsTool) PrepareCall

func (s *ListAgentsTool) PrepareCall(_ context.Context, _ uuid.UUID, argsJSON string) (tool.Request, tool.PreparedArtifact, error)

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) Info

func (*MessageAgentTool) InvokableRun

func (s *MessageAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)

func (*MessageAgentTool) PrepareCall

func (s *MessageAgentTool) PrepareCall(_ context.Context, _ uuid.UUID, argsJSON string) (tool.Request, tool.PreparedArtifact, error)

type PreparedListAgents

type PreparedListAgents struct{ AgentID *uuid.UUID }

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

type PreparedStopAgent struct{ AgentID uuid.UUID }

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) Info

func (*StartAgentTool) InvokableRun

func (s *StartAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)

func (*StartAgentTool) PrepareCall

func (s *StartAgentTool) PrepareCall(ctx context.Context, _ uuid.UUID, argsJSON string) (tool.Request, tool.PreparedArtifact, error)

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) Info

func (*StopAgentTool) InvokableRun

func (s *StopAgentTool) InvokableRun(ctx context.Context, _ string) (*tool.ToolResult, error)

func (*StopAgentTool) PrepareCall

func (s *StopAgentTool) PrepareCall(_ context.Context, _ uuid.UUID, argsJSON string) (tool.Request, tool.PreparedArtifact, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL