ToolCaller is the narrowest interface which describes the behavior required from [mcp.Client], which will normally be passed into [Tool] for interaction with an MCP server. TODO: don't expose github.com/mark3labs/mcp-go outside this package.
| 26 | // which will normally be passed into [Tool] for interaction with an MCP server. |
| 27 | // TODO: don't expose github.com/mark3labs/mcp-go outside this package. |
| 28 | type ToolCaller interface { |
| 29 | CallTool(ctx context.Context, request mcp.CallToolRequest) (*mcp.CallToolResult, error) |
| 30 | } |
| 31 | |
| 32 | type Tool struct { |
| 33 | Client ToolCaller |
no outgoing calls
no test coverage detected