Documentation
¶
Index ¶
Constants ¶
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 ¶
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.