geminiagent

package
v0.59.134 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultTimeout             = 300             // 5 minutes default timeout
	DefaultMaxResponseSize     = 2 * 1024 * 1024 // 2MB default limit
	AgentTimeoutEnvVar         = "AGENT_TIMEOUT"
	AgentMaxResponseSizeEnvVar = "AGENT_MAX_RESPONSE_SIZE"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GeminiTool

type GeminiTool struct{}

GeminiTool implements the tools.Tool interface for the gemini CLI

func (*GeminiTool) ApplyResponseSizeLimit added in v0.21.1

func (t *GeminiTool) ApplyResponseSizeLimit(output string, logger *logrus.Logger) string

ApplyResponseSizeLimit truncates the response if it exceeds the configured size limit

func (*GeminiTool) Definition

func (t *GeminiTool) Definition() mcpapi.Tool

Definition returns the tool's definition for MCP registration

func (*GeminiTool) Execute

func (t *GeminiTool) Execute(ctx context.Context, logger *logrus.Logger, cache *sync.Map, args map[string]any) (*mcpapi.CallToolResult, error)

Execute executes the tool's logic by calling the gemini CLI

func (*GeminiTool) GetMaxResponseSize added in v0.21.1

func (t *GeminiTool) GetMaxResponseSize() int

GetMaxResponseSize returns the configured maximum response size

func (*GeminiTool) GetTimeout added in v0.44.0

func (t *GeminiTool) GetTimeout() int

GetTimeout returns the configured timeout or default

func (*GeminiTool) ProvideExtendedInfo added in v0.22.0

func (t *GeminiTool) ProvideExtendedInfo() *tools.ExtendedHelp

ProvideExtendedInfo provides detailed usage information for the gemini agent tool

Jump to

Keyboard shortcuts

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