claudeagent

package
v0.59.2 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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