Versions in this module Expand all Collapse all v0 v0.1.5 Mar 23, 2026 Changes in this version + const ModelListCap + func BuildErrorResponse(modelID, qualifiedID string, start time.Time, ...) models.ModelResponse + func BuildInterruptedResponse(modelID, qualifiedID string, textParts []string, start time.Time, ...) models.ModelResponse + func BuildMaxStepsResponse(modelID, qualifiedID string, textParts []string, start time.Time, ...) models.ModelResponse + func BuildSuccessResponse(modelID, qualifiedID string, textParts []string, start time.Time, ...) models.ModelResponse + func DebugRequestsFromContext(ctx context.Context) bool + func DispatchTool(ctx context.Context, name string, args map[string]string, ...) (result string, ok bool) + func EmitRequest(ctx context.Context, onEvent func(models.AgentEvent), params any) + func EmitSnapshot(onEvent func(models.AgentEvent), qualifiedID string, textParts []string, ...) + func ListAdapters(cfg config.Config) ([]models.ModelAdapter, []string) + func NewAdapter(modelID string, cfg config.Config) (models.ModelAdapter, error) + func NewAdapterForProvider(modelID, provider string, cfg config.Config) (models.ModelAdapter, error) + func WithDebugRequests(ctx context.Context) context.Context + type AnthropicAdapter struct + func NewAnthropicAdapter(modelID, apiKey string) *AnthropicAdapter + func (a *AnthropicAdapter) Capabilities(_ context.Context) models.ModelCapabilities + func (a *AnthropicAdapter) ID() string + func (a *AnthropicAdapter) RunAgent(ctx context.Context, history []models.ConversationTurn, prompt string, ...) (models.ModelResponse, error) + type AzureOpenAIAdapter struct + func NewAzureOpenAIAdapter(modelID, apiKey, endpoint, apiVersion string) *AzureOpenAIAdapter + func (a *AzureOpenAIAdapter) Capabilities(_ context.Context) models.ModelCapabilities + func (a *AzureOpenAIAdapter) ID() string + func (a *AzureOpenAIAdapter) RunAgent(ctx context.Context, history []models.ConversationTurn, prompt string, ...) (models.ModelResponse, error) + type BedrockAdapter struct + func NewBedrockAdapter(modelID, region string) *BedrockAdapter + func (a *BedrockAdapter) Capabilities(_ context.Context) models.ModelCapabilities + func (a *BedrockAdapter) ID() string + func (a *BedrockAdapter) RunAgent(ctx context.Context, history []models.ConversationTurn, prompt string, ...) (models.ModelResponse, error) + type GeminiAdapter struct + func NewGeminiAdapter(modelID, apiKey string) *GeminiAdapter + func (a *GeminiAdapter) Capabilities(ctx context.Context) models.ModelCapabilities + func (a *GeminiAdapter) ID() string + func (a *GeminiAdapter) RunAgent(ctx context.Context, history []models.ConversationTurn, prompt string, ...) (models.ModelResponse, error) + type LiteLLMAdapter struct + func NewLiteLLMAdapter(modelID, apiKey, baseURL string) *LiteLLMAdapter + func (a *LiteLLMAdapter) Capabilities(_ context.Context) models.ModelCapabilities + func (a *LiteLLMAdapter) ID() string + func (a *LiteLLMAdapter) RunAgent(ctx context.Context, history []models.ConversationTurn, prompt string, ...) (models.ModelResponse, error) + type OpenAIAdapter struct + func NewOpenAIAdapter(modelID, apiKey string) *OpenAIAdapter + func (a *OpenAIAdapter) Capabilities(_ context.Context) models.ModelCapabilities + func (a *OpenAIAdapter) ID() string + func (a *OpenAIAdapter) RunAgent(ctx context.Context, history []models.ConversationTurn, prompt string, ...) (models.ModelResponse, error) + type OpenRouterAdapter struct + func NewOpenRouterAdapter(modelID, apiKey string) *OpenRouterAdapter + func (a *OpenRouterAdapter) Capabilities(_ context.Context) models.ModelCapabilities + func (a *OpenRouterAdapter) ID() string + func (a *OpenRouterAdapter) RunAgent(ctx context.Context, history []models.ConversationTurn, prompt string, ...) (models.ModelResponse, error) + type ProviderModels struct + Err error + Models []string + Provider string + TotalCount int + func ListAvailableModels(ctx context.Context, cfg config.Config) []ProviderModels + type VertexAIAdapter struct + func NewVertexAIAdapter(modelID, project, location string) *VertexAIAdapter + func (a *VertexAIAdapter) Capabilities(ctx context.Context) models.ModelCapabilities + func (a *VertexAIAdapter) ID() string + func (a *VertexAIAdapter) RunAgent(ctx context.Context, history []models.ConversationTurn, prompt string, ...) (models.ModelResponse, error) v0.1.0 Mar 14, 2026