agenttool

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(svcName, method string, ag *agent.Agent, orch *mcpsvc.Service) types.Service

NewService constructs and registers an agentRunService on the supplied Actions registry.

Types

type GroupService

type GroupService struct {
	// contains filtered or unexported fields
}

GroupService groups multiple agents under one service; each agent is exposed as an individual method.

func NewGroupService

func NewGroupService(name string, orch *mcpsvc.Service) *GroupService

func (*GroupService) Add

func (gs *GroupService) Add(method string, ag *agent.Agent)

Add links an agent to the specified method.

func (*GroupService) Method

func (gs *GroupService) Method(name string) (types.Executable, error)

Method returns executable for given method.

func (*GroupService) Methods

func (gs *GroupService) Methods() types.Signatures

func (*GroupService) Name

func (gs *GroupService) Name() string

type RunInput

type RunInput struct {
	Objective string                 `json:"objective,omitempty"`
	Context   map[string]interface{} `json:"context,omitempty"`
}

RunInput is the parameter object accepted by every agent-runner method.

type RunOutput

type RunOutput struct {
	Answer  string      `json:"answer,omitempty"`
	Trace   interface{} `json:"trace,omitempty"`
	AgentID string      `json:"agentId,omitempty"`
}

RunOutput defines the minimal structure returned to callers.

Jump to

Keyboard shortcuts

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