Documentation
¶
Index ¶
- Constants
- type QDeveloperTool
- func (t *QDeveloperTool) ApplyResponseSizeLimit(output string, logger *logrus.Logger) string
- func (t *QDeveloperTool) Definition() mcp.Tool
- func (t *QDeveloperTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, ...) (*mcp.CallToolResult, error)
- func (t *QDeveloperTool) GetMaxResponseSize() int
- func (t *QDeveloperTool) GetTimeout() int
- func (t *QDeveloperTool) ProvideExtendedInfo() *tools.ExtendedHelp
Constants ¶
View Source
const ( DefaultTimeout = 300 // 5 minutes default timeout DefaultMaxResponseSize = 2 * 1024 * 1024 // 2MB default limit AgentMaxResponseSizeEnvVar = "AGENT_MAX_RESPONSE_SIZE" AgentTimeoutEnvVar = "AGENT_TIMEOUT" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QDeveloperTool ¶
type QDeveloperTool struct{}
QDeveloperTool implements the tools.Tool interface for AWS Q Developer CLI
func (*QDeveloperTool) ApplyResponseSizeLimit ¶
func (t *QDeveloperTool) ApplyResponseSizeLimit(output string, logger *logrus.Logger) string
ApplyResponseSizeLimit truncates the response if it exceeds the configured size limit
func (*QDeveloperTool) Definition ¶
func (t *QDeveloperTool) Definition() mcp.Tool
Definition returns the tool's definition for MCP registration
func (*QDeveloperTool) Execute ¶
func (t *QDeveloperTool) 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 Q Developer CLI
func (*QDeveloperTool) GetMaxResponseSize ¶
func (t *QDeveloperTool) GetMaxResponseSize() int
GetMaxResponseSize returns the configured maximum response size
func (*QDeveloperTool) GetTimeout ¶
func (t *QDeveloperTool) GetTimeout() int
GetTimeout returns the configured timeout or default
func (*QDeveloperTool) ProvideExtendedInfo ¶
func (t *QDeveloperTool) ProvideExtendedInfo() *tools.ExtendedHelp
ProvideExtendedInfo provides detailed usage information for the Q Developer agent tool
Click to show internal directories.
Click to hide internal directories.