Versions in this module Expand all Collapse all v0 v0.2.7 Apr 21, 2026 Changes in this version + type CacheControl = protocoltypes.CacheControl + type ContentBlock = protocoltypes.ContentBlock + type ExtraContent = protocoltypes.ExtraContent + type FunctionCall = protocoltypes.FunctionCall + type GeminiProvider struct + func NewGeminiProvider(apiKey string, apiBase string, proxy string, userAgent string, ...) *GeminiProvider + func (p *GeminiProvider) Chat(ctx context.Context, messages []Message, tools []ToolDefinition, model string, ...) (*LLMResponse, error) + func (p *GeminiProvider) ChatStream(ctx context.Context, messages []Message, tools []ToolDefinition, model string, ...) (*LLMResponse, error) + func (p *GeminiProvider) GetDefaultModel() string + func (p *GeminiProvider) SupportsThinking() bool + type GoogleExtra = protocoltypes.GoogleExtra + type HTTPProvider struct + func NewHTTPProvider(apiKey, apiBase, proxy string) *HTTPProvider + func NewHTTPProviderWithMaxTokensField(apiKey, apiBase, proxy, maxTokensField string) *HTTPProvider + func NewHTTPProviderWithMaxTokensFieldAndRequestTimeout(apiKey, apiBase, proxy, maxTokensField, userAgent string, ...) *HTTPProvider + func (p *HTTPProvider) Chat(ctx context.Context, messages []Message, tools []ToolDefinition, model string, ...) (*LLMResponse, error) + func (p *HTTPProvider) ChatStream(ctx context.Context, messages []Message, tools []ToolDefinition, model string, ...) (*LLMResponse, error) + func (p *HTTPProvider) GetDefaultModel() string + func (p *HTTPProvider) SupportsNativeSearch() bool + type LLMProvider interface + Chat func(ctx context.Context, messages []Message, tools []ToolDefinition, model string, ...) (*LLMResponse, error) + GetDefaultModel func() string + type LLMResponse = protocoltypes.LLMResponse + type Message = protocoltypes.Message + type StreamingProvider interface + ChatStream func(ctx context.Context, messages []Message, tools []ToolDefinition, model string, ...) (*LLMResponse, error) + type ToolCall = protocoltypes.ToolCall + type ToolDefinition = protocoltypes.ToolDefinition + type ToolFunctionDefinition = protocoltypes.ToolFunctionDefinition + type UsageInfo = protocoltypes.UsageInfo