agent

package
v0.0.0-...-90151e9 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultGeminiModel    = "gemini-2.5-flash"
	DefaultAnthropicModel = "claude-sonnet-4-20250514"
	DefaultOllamaModel    = "llama3.2"
)

Default model names used when not specified in configuration

Variables

This section is empty.

Functions

func CreateGoogleADKAgent

func CreateGoogleADKAgent(ctx context.Context, agentConfig *adk.AgentConfig, agentName string, stsPlugin *sts.TokenPropagationPlugin, extraTools ...tool.Tool) (agent.Agent, error)

CreateGoogleADKAgent creates a Google ADK agent from AgentConfig. agentName is used as the ADK agent identity (appears in event Author field). extraTools are appended to the agent's tool list (e.g. save_memory). Optional stsPlugin can be provided for token propagation to MCP tools; pass nil if token propagation is not needed.

func CreateLLM

func CreateLLM(ctx context.Context, m adk.Model) (adkmodel.LLM, error)

CreateLLM creates an adkmodel.LLM from the model configuration. This is exported to allow reuse of model creation logic (e.g., for memory summarization).

func MakeMCPAppModelResultCallback

func MakeMCPAppModelResultCallback(appToolNames map[string]bool) llmagent.BeforeModelCallback

MakeMCPAppModelResultCallback replaces what the model sees for MCP App (UI-rendering) tool results: instead of the heavy render payload it receives a terminal directive (see mcpAppRenderedNotice). The full result is still streamed to the UI separately, so this only changes the model's view and prevents the model from looping on the rendering tool. Errors are passed through so the model can still react to and recover from failures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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