Documentation
¶
Index ¶
- Constants
- type ClaudeTool
- func (t *ClaudeTool) ApplyResponseSizeLimit(output string, logger *logrus.Logger) string
- func (t *ClaudeTool) Definition() mcp.Tool
- func (t *ClaudeTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, ...) (*mcp.CallToolResult, error)
- func (t *ClaudeTool) GetMaxResponseSize() int
- func (t *ClaudeTool) ProvideExtendedInfo() *tools.ExtendedHelp
Constants ¶
View Source
const ( DefaultMaxResponseSize = 2 * 1024 * 1024 // 2MB default limit AgentMaxResponseSizeEnvVar = "AGENT_MAX_RESPONSE_SIZE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClaudeTool ¶
type ClaudeTool struct{}
ClaudeTool implements the tools.Tool interface for the claude CLI
func (*ClaudeTool) ApplyResponseSizeLimit ¶ added in v0.21.1
func (t *ClaudeTool) ApplyResponseSizeLimit(output string, logger *logrus.Logger) string
ApplyResponseSizeLimit truncates the response if it exceeds the configured size limit
func (*ClaudeTool) Definition ¶
func (t *ClaudeTool) Definition() mcp.Tool
Definition returns the tool's definition for MCP registration
func (*ClaudeTool) Execute ¶
func (t *ClaudeTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, args map[string]any) (*mcp.CallToolResult, error)
Execute executes the tool's logic by calling the claude CLI
func (*ClaudeTool) GetMaxResponseSize ¶ added in v0.21.1
func (t *ClaudeTool) GetMaxResponseSize() int
GetMaxResponseSize returns the configured maximum response size
func (*ClaudeTool) ProvideExtendedInfo ¶ added in v0.22.0
func (t *ClaudeTool) ProvideExtendedInfo() *tools.ExtendedHelp
ProvideExtendedInfo provides detailed usage information for the claude agent tool
Click to show internal directories.
Click to hide internal directories.