Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToolHandler ¶
func CreateToolHandler(t *team.Team, agentName string) func(context.Context, *mcp.CallToolRequest, ToolInput) (*mcp.CallToolResult, ToolOutput, error)
func StartHTTPServer ¶ added in v1.11.0
func StartHTTPServer(ctx context.Context, agentFilename, agentName string, runConfig *config.RuntimeConfig, ln net.Listener) error
StartHTTPServer starts a streaming HTTP MCP server on the given listener
func StartMCPServer ¶
Types ¶
type ToolInput ¶
type ToolInput struct {
Message string `json:"message" jsonschema:"the message to send to the agent"`
}
type ToolOutput ¶
type ToolOutput struct {
Response string `json:"response" jsonschema:"the response from the agent"`
}
Click to show internal directories.
Click to hide internal directories.