qdeveloperagent

package
v0.50.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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