Documentation
¶
Index ¶
- Constants
- func CountTokens(text string) int
- func EstimateMaxTokens(promptTokens, contextWindowSize int) int
- func PtrFloat64(v float64) *float64
- func RegisterCustomProvider(name string, factory LlmFactory)
- func RegisterProvider(provider Provider, factory LlmFactory)
- type AgentInterface
- type Answer
- type LlmFactory
- type LlmInterface
- func DecisionModel(provider Provider, options LlmOptions) (LlmInterface, error)
- func ImageModel(provider Provider, options LlmOptions) (LlmInterface, error)
- func JSONModel(provider Provider, options LlmOptions) (LlmInterface, error)
- func NewLLM(options LlmOptions) (LlmInterface, error)
- func TextModel(provider Provider, options LlmOptions) (LlmInterface, error)
- type LlmOptions
- type Message
- type MockCall
- type MockInterface
- type OutputFormat
- type Provider
- type Question
- type Tool
- type ToolCall
- type ToolResponse
- type ToolsInterface
Constants ¶
const ( RoleSystem = "system" RoleUser = "user" RoleAssistant = "assistant" RoleTool = "tool" )
Message roles used in LlmOptions.Messages for tool-enabled conversations.
const ( // ToolChoiceAuto lets the model decide whether to call a tool (default). ToolChoiceAuto = "auto" // ToolChoiceNone forbids tool calls. ToolChoiceNone = "none" // ToolChoiceRequired forces the model to call one of the tools. ToolChoiceRequired = "required" )
ToolChoice values accepted by LlmOptions.ToolChoice. Any other non-empty value is treated as a specific tool name the model must call.
const ( // QuestionNoul — "does this condition hold?" → probability of yes. QuestionNoul = "noul" // QuestionChoice — "which of these options?" → option + probabilities. QuestionChoice = "choice" // QuestionScore — "where on this ordered scale?" → weighted position. QuestionScore = "score" )
Question type primitives supported by the Decisions contract.
const ANTHROPIC_MODEL_CLAUDE_3_5_HAIKU = "claude-3-5-haiku-20241022"
Anthropic Claude 3.5 Haiku Released: 2024-11 Input $0.80/M Output $4.00/M Context 200,000
const ANTHROPIC_MODEL_CLAUDE_3_5_SONNET = "claude-3-5-sonnet-20241022"
Anthropic Claude 3.5 Sonnet Released: 2024-06 / 2024-10 Input $3.00/M Output $15.00/M Context 200,000
const ANTHROPIC_MODEL_CLAUDE_3_OPUS = "claude-3-opus-20240229"
Anthropic Claude 3 Opus Released: 2024-02 Input $15.00/M Output $75.00/M Context 200,000
const ANTHROPIC_MODEL_CLAUDE_HAIKU_4_5 = "claude-haiku-4.5"
Anthropic Claude Haiku 4.5 Released: 2025 Input $0.80/M Output $4.00/M Context 200,000
const ANTHROPIC_MODEL_CLAUDE_OPUS_4_5 = "claude-opus-4.5"
Anthropic Claude Opus 4.5 Released: 2025 Input $5.00/M Output $25.00/M Context 200,000
const ANTHROPIC_MODEL_CLAUDE_OPUS_4_6 = "claude-opus-4.6"
Anthropic Claude Opus 4.6 Released: 2025 Input $5.00/M Output $25.00/M Context 1,000,000
const ANTHROPIC_MODEL_CLAUDE_SONNET_4 = "claude-sonnet-4"
Anthropic Claude Sonnet 4 Released: 2025 Input $3.00/M Output $15.00/M Context 1,000,000
const ANTHROPIC_MODEL_CLAUDE_SONNET_4_5 = "claude-sonnet-4.5"
Anthropic Claude Sonnet 4.5 Released: 2025 Input $3.00/M Output $15.00/M Context 1,000,000
const GEMINI_MODEL_1_5_FLASH = "gemini-1.5-flash"
Google Gemini 1.5 Flash Released: 2024-05 Input $0.075/M Output $0.30/M Context 1,048,576
const GEMINI_MODEL_1_5_PRO = "gemini-1.5-pro"
Google Gemini 1.5 Pro Released: 2024-05 Input $1.25/M Output $5.00/M Context 2,097,152
const GEMINI_MODEL_2_0_FLASH = "gemini-2.0-flash-001"
Google Gemini 2.0 Flash Released: 2024-12 Input $0.10/M Output $0.40/M Context 1,048,576
const GEMINI_MODEL_2_0_FLASH_EXP_IMAGE_GENERATION = "gemini-2.0-flash-exp-image-generation"
Google Gemini 2.0 Flash Exp Image Generation Released: 2024-12 Experimental image generation model
const GEMINI_MODEL_2_0_FLASH_LITE = "gemini-2.0-flash-lite-001"
Google Gemini 2.0 Flash Lite Released: 2025-02 Input $0.075/M Output $0.30/M Context 1,048,576
const GEMINI_MODEL_2_5_FLASH = "gemini-2.5-flash"
Google Gemini 2.5 Flash Released: 2025 Input $0.30/M Output $2.50/M Context 1,048,576
const GEMINI_MODEL_2_5_FLASH_IMAGE = "gemini-2.5-flash-image"
Google Gemini 2.5 Flash Image Released: 2025 Input $0.30/M Output $2.50/M Context 1,048,576
const GEMINI_MODEL_2_5_FLASH_LITE = "gemini-2.5-flash-lite"
Google Gemini 2.5 Flash Lite Released: 2025 Input $0.10/M Output $0.40/M Context 1,048,576
const GEMINI_MODEL_2_5_PRO = "gemini-2.5-pro"
Google Gemini 2.5 Pro Released: 2025 Input $1.25/M Output $10.00/M Context 1,048,576
const GEMINI_MODEL_3_1_FLASH_LITE = "gemini-3.1-flash-lite"
Google Gemini 3.1 Flash Lite Released: 2026 Input $0.25/M Output $1.50/M Context 1,048,576
const GEMINI_MODEL_3_5_FLASH = "gemini-3.5-flash"
Google Gemini 3.5 Flash Released: 2026-05 Input $1.50/M Output $9.00/M Context 1,048,576
const GEMINI_MODEL_3_5_FLASH_LITE = "gemini-3.5-flash-lite"
Google Gemini 3.5 Flash Lite Released: 2026-07 Input $0.30/M Output $2.50/M Context 1,048,576
const GEMINI_MODEL_3_6_FLASH = "gemini-3.6-flash"
Google Gemini 3.6 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576
const GEMINI_MODEL_3_7_FLASH = "gemini-3.7-flash"
Google Gemini 3.7 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576
const GEMINI_MODEL_3_8_FLASH = "gemini-3.8-flash"
Google Gemini 3.8 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576 (introductory price)
const GEMINI_MODEL_3_FLASH_PREVIEW = "gemini-3-flash-preview"
Google Gemini 3 Flash Preview Released: 2026 Input $0.50/M Output $3.00/M Context 1,048,576
const GEMINI_MODEL_3_PRO_PREVIEW = "gemini-3-pro-preview"
Google Gemini 3 Pro Preview Released: 2026 Input $2.00/M Output $12.00/M Context 1,048,576
const GEMINI_MODEL_EMBEDDING_001 = "models/embedding-001"
Google Gemini Embedding 001 Released: 2024 Input $0.15/M Output $0.00/M
const GEMINI_MODEL_GEMMA_3_12B_IT = "gemma-3-12b-it"
Google Gemma 3 12B IT Released: 2025 Input $0.048/M Output $0.193/M Context 96,000
const GEMINI_MODEL_GEMMA_3_27B_IT = "gemma-3-27b-it"
Google Gemma 3 27B IT Released: 2025 Input $0.067/M Output $0.267/M Context 96,000
const GEMINI_MODEL_GEMMA_4_26B_A4B_IT = "gemma-4-26b-a4b-it"
Google Gemma 4 26B A4B IT Released: 2026 Input $0.07/M Output $0.34/M Context 262,144
const GEMINI_MODEL_GEMMA_4_31B_IT = "gemma-4-31b-it"
Google Gemma 4 31B IT Released: 2026 Input $0.09/M Output $0.34/M Context 262,144
const OPENAI_MODEL_DALL_E_2 = "dall-e-2"
OpenAI DALL-E 2 Released: 2022-11 1024x1024: $0.020/image
const OPENAI_MODEL_DALL_E_3 = "dall-e-3"
OpenAI DALL-E 3 Released: 2023-10 Standard 1024x1024: $0.040/image; HD 1024x1024: $0.080/image
const OPENAI_MODEL_GPT_4O = "gpt-4o"
OpenAI GPT-4o Released: 2024-05 Input $2.50/M Output $10.00/M Context 128,000
const OPENAI_MODEL_GPT_4O_MINI = "gpt-4o-mini"
OpenAI GPT-4o Mini Released: 2024-07 Input $0.15/M Output $0.60/M Context 128,000
const OPENAI_MODEL_GPT_4_1_NANO = "gpt-4.1-nano"
OpenAI GPT-4.1 Nano Released: 2025 Input $0.10/M Output $0.40/M Context 1,047,576
const OPENAI_MODEL_GPT_4_TURBO_PREVIEW = "gpt-4-turbo-preview"
OpenAI GPT-4 Turbo Preview Released: 2024-01 Input $10.00/M Output $30.00/M Context 128,000
const OPENAI_MODEL_GPT_5_1 = "gpt-5.1"
OpenAI GPT-5.1 Released: 2025 Input $1.25/M Output $10.00/M Context 400,000 Web Search: $10/K
const OPENAI_MODEL_GPT_5_2 = "gpt-5.2"
OpenAI GPT-5.2 Released: 2026 Input $1.75/M Output $14.00/M Context 400,000 Web Search: $10/K
const OPENAI_MODEL_GPT_5_2_CHAT = "gpt-5.2-chat"
OpenAI GPT-5.2 Chat (Instant) Released: 2026 Input $1.75/M Output $14.00/M Context 128,000 Web Search: $10/K
const OPENAI_MODEL_GPT_5_2_CODEX = "gpt-5.2-codex"
OpenAI GPT-5.2 Codex Released: 2026 Input $1.75/M Output $14.00/M Context 400,000 Web Search: $10/K
const OPENAI_MODEL_GPT_5_2_PRO = "gpt-5.2-pro"
OpenAI GPT-5.2 Pro Released: 2026 Input $21.00/M Output $168.00/M Context 400,000 Web Search: $10/K
const OPENAI_MODEL_GPT_5_IMAGE = "gpt-5-image"
OpenAI GPT-5 Image Released: 2025 Input $10.00/M Output $10.00/M Context 400,000
const OPENAI_MODEL_GPT_5_IMAGE_MINI = "gpt-5-image-mini"
OpenAI GPT-5 Image Mini Released: 2025 Input $2.50/M Output $2.00/M Context 1,048,576
const OPENAI_MODEL_GPT_5_NANO = "gpt-5-nano"
OpenAI GPT-5 Nano Released: 2025 Input $0.05/M Output $0.40/M Context 400,000
const OPENAI_MODEL_GPT_6_ASTRA = "gpt-6-astra"
OpenAI GPT-6 Astra Released: 2026-09 Input $10.00/M Output $50.00/M Context 1,050,000
const OPENAI_MODEL_GPT_ASTRA_LATEST = "gpt-astra-latest"
OpenAI GPT Astra Latest (alias — always redirects to latest Astra) Released: 2026-09 Input $10.00/M Output $50.00/M Context 1,050,000
const OPENAI_MODEL_GPT_LUNA_LATEST = "gpt-luna-latest"
OpenAI GPT Luna Latest (alias — always redirects to latest Luna) Released: 2026-09 Input $0.20/M Output $1.20/M Context 1,050,000
const OPENAI_MODEL_GPT_OSS_120B = "gpt-oss-120b"
OpenAI GPT-OSS 120B Released: 2025-08 Input $0.072/M Output $0.28/M Context 131,072
const OPENAI_MODEL_GPT_OSS_20B = "gpt-oss-20b"
OpenAI GPT-OSS 20B Released: 2025-08 Input $0.04/M Output $0.15/M Context 131,072
const OPENAI_MODEL_GPT_SOL_LATEST = "gpt-sol-latest"
OpenAI GPT Sol Latest (alias — always redirects to latest Sol) Released: 2026-09 Input $2.00/M Output $10.00/M Context 1,050,000
const OPENAI_MODEL_GPT_TERRA_LATEST = "gpt-terra-latest"
OpenAI GPT Terra Latest (alias — always redirects to latest Terra) Released: 2026-09 Input $2.00/M Output $12.00/M Context 1,050,000
const OPENAI_MODEL_O1 = "o1"
OpenAI O1 Released: 2024-12 Input $15.00/M Output $60.00/M Context 200,000
const OPENAI_MODEL_O3_MINI = "o3-mini"
OpenAI O3 Mini Released: 2025-01 Input $1.10/M Output $4.40/M Context 200,000
const OPENAI_MODEL_O4_MINI = "o4-mini"
OpenAI O4 Mini Released: 2025 Input $1.10/M Output $4.40/M Context 200,000
const OPENAI_MODEL_TEXT_EMBEDDING_3_LARGE = "text-embedding-3-large"
OpenAI Text Embedding 3 Large Released: 2024-01 Input $0.13/M Output $0.00/M Context 8,191
const OPENAI_MODEL_TEXT_EMBEDDING_3_SMALL = "text-embedding-3-small"
OpenAI Text Embedding 3 Small Released: 2024-01 Input $0.02/M Output $0.00/M Context 8,191
const OPENAI_MODEL_TEXT_EMBEDDING_ADA_002 = "text-embedding-ada-002"
OpenAI Text Embedding Ada 002 Released: 2022-12 Input $0.10/M Output $0.00/M Context 8,191
const OPENROUTER_MODEL_CLAUDE_HAIKU_4_5 = "anthropic/claude-haiku-4.5"
Anthropic Claude Haiku 4.5 Released: 2025 Input $0.80/M Output $4.00/M Context 200,000
const OPENROUTER_MODEL_CLAUDE_OPUS_4_5 = "anthropic/claude-opus-4.5"
Anthropic Claude Opus 4.5 Released: 2025 Input $5.00/M Output $25.00/M Context 200,000
const OPENROUTER_MODEL_CLAUDE_OPUS_4_6 = "anthropic/claude-opus-4.6"
Anthropic Claude Opus 4.6 Released: 2025 Input $5.00/M Output $25.00/M Context 1,000,000
const OPENROUTER_MODEL_CLAUDE_SONNET_4 = "anthropic/claude-sonnet-4"
Anthropic Claude Sonnet 4 Released: 2025 Input $3.00/M Output $15.00/M Context 1,000,000
const OPENROUTER_MODEL_CLAUDE_SONNET_4_5 = "anthropic/claude-sonnet-4.5"
Anthropic Claude Sonnet 4.5 Released: 2025 Input $3.00/M Output $15.00/M Context 1,000,000
const OPENROUTER_MODEL_CLEF_OMNI = "cloudflare/clef-omni"
Cloudflare Clef Omni Released: 2026-10 Input $0.15/M Output $0.00/M Context 66,000
const OPENROUTER_MODEL_CODESTRAL_EMBED_2505 = "mistralai/codestral-embed-2505"
Mistral Codestral Embedding 2505 Released: 2025-05 Input $0.15/M Output $0.00/M
const OPENROUTER_MODEL_DECIDER_V1_1_27B = "perplexity/decider-1.1-27b"
Perplexity Decider V1.1 27B Released: 2026-10 Input $0.02/M Output $0.00/M Context 262,144
const OPENROUTER_MODEL_DEEPSEEK_V3_1 = "deepseek/deepseek-chat-v3.1"
DeepSeek DeepSeek V3.1 Released: 2025 Input $0.20/M Output $0.80/M Context 163,840
const OPENROUTER_MODEL_DEEPSEEK_V4_1_FLASH = "deepseek/deepseek-v4.1-flash"
DeepSeek DeepSeek V4.1 Flash Released: 2026-09 Input $0.15/M Output $0.60/M Context 1,050,000
const OPENROUTER_MODEL_DEEPSEEK_V4_FLASH_0731 = "deepseek/deepseek-v4-flash-0731"
DeepSeek DeepSeek V4 Flash 0731 Released: 2026-07 Input $0.05/M Output $0.16/M Context 1,310,720
const OPENROUTER_MODEL_DEVSTRAL_2512 = "mistralai/devstral-2512"
Mistral Devstral 2512 Released: 2025-12 Input $0.05/M Output $0.22/M Context 262,144
const OPENROUTER_MODEL_DREX_V1_5 = "nace-ai/drex-v1.5"
Nace.AI Drex v1.5 Released: 2026-10 Input $0.04/M Output $0.00/M Context 131,072
const OPENROUTER_MODEL_FUGU_MAX = "sakana/fugu-max"
Sakana Fugu Max Released: 2026-09 Input $2/M Output $6/M Context 1,000,000
const OPENROUTER_MODEL_FUGU_ULTRA_V2 = "sakana/fugu-ultra-v2"
Sakana Fugu Ultra v2 Released: 2026-09 Input $5/M Output $30/M Context 1,000,000
const OPENROUTER_MODEL_GEMINI_2_5_FLASH = "google/gemini-2.5-flash"
Google Gemini 2.5 Flash Released: 2025 Input $0.30/M Output $2.50/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_2_5_FLASH_IMAGE = "google/gemini-2.5-flash-image"
Google Gemini 2.5 Flash Image Released: 2025 Input $0.30/M Output $2.50/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_2_5_FLASH_LITE = "google/gemini-2.5-flash-lite"
Google Gemini 2.5 Flash Lite Released: 2025 Input $0.10/M Output $0.40/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_2_5_PRO = "google/gemini-2.5-pro"
Google Gemini 2.5 Pro Released: 2025 Input $1.25/M Output $10/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_3_1_FLASH_LITE = "google/gemini-3.1-flash-lite"
Google Gemini 3.1 Flash Lite Released: 2026 Input $0.25/M Output $1.50/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_3_5_FLASH = "google/gemini-3.5-flash"
Google Gemini 3.5 Flash Released: 2026-05 Input $1.50/M Output $9.00/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_3_5_FLASH_LITE = "google/gemini-3.5-flash-lite"
Google Gemini 3.5 Flash Lite Released: 2026-07 Input $0.30/M Output $2.50/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_3_6_FLASH = "google/gemini-3.6-flash"
Google Gemini 3.6 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_3_7_FLASH = "google/gemini-3.7-flash"
Google Gemini 3.7 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_3_8_FLASH = "google/gemini-3.8-flash"
Google Gemini 3.8 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576 (introductory price)
const OPENROUTER_MODEL_GEMINI_3_FLASH_PREVIEW = "google/gemini-3-flash-preview"
Google Gemini 3 Flash Preview Released: 2026 Input $0.50/M Output $3.00/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_3_PRO_PREVIEW = "google/gemini-3-pro-preview"
Google Gemini 3 Pro Preview Released: 2026 Input $2/M Output $12/M Context 1,048,576
const OPENROUTER_MODEL_GEMINI_EMBED_001 = "google/gemini-embedding-001"
Google Gemini Embedding 001 Released: 2024 Input $0.15/M Output $0.00/M
const OPENROUTER_MODEL_GEMMA_3_12B_IT = "google/gemma-3-12b-it"
Google Gemma 3 12B Released: 2025 Input $0.048/M Output $0.193/M Context 96,000
const OPENROUTER_MODEL_GEMMA_3_27B_IT = "google/gemma-3-27b-it"
Google Gemma 3 27B Released: 2025 Input $0.067/M Output $0.267/M Context 96,000
const OPENROUTER_MODEL_GEMMA_4_26B_A4B_IT = "google/gemma-4-26b-a4b-it"
Google Gemma 4 26B A4B IT Released: 2026 Input $0.07/M Output $0.34/M Context 262,144
const OPENROUTER_MODEL_GEMMA_4_31B_IT = "google/gemma-4-31b-it"
Google Gemma 4 31B IT Released: 2026 Input $0.09/M Output $0.34/M Context 262,144
const OPENROUTER_MODEL_GLM_4_7 = "z-ai/glm-4.7"
Z.AI GLM 4.7 Released: 2025 Input $0.40/M Output $1.50/M Context 202,752
const OPENROUTER_MODEL_GLM_4_7_FLASH = "z-ai/glm-4.7-flash"
Z.AI GLM 4.7 Flash Released: 2025 Input $0.06/M Output $0.40/M Context 202,752
const OPENROUTER_MODEL_GLM_5_3_FLASH = "z-ai/glm-5.3-flash"
Z.AI GLM 5.3 Flash Released: 2026 Input $0.075/M Output $0.25/M Context 1,310,720
const OPENROUTER_MODEL_GPT_4_1_NANO = "openai/gpt-4.1-nano"
OpenAI GPT-4.1 Nano Released: 2025 Input $0.10/M Output $0.40/M Context 1,047,576
const OPENROUTER_MODEL_GPT_5_1 = "openai/gpt-5.1"
OpenAI GPT-5.1 Released: 2025 Input $1.25/M Output $10.00/M Context 400,000 Web Search: $10/K
const OPENROUTER_MODEL_GPT_5_2 = "openai/gpt-5.2"
OpenAI GPT-5.2 Released: 2026 Input $1.75/M Output $14.00/M Context 400,000 Web Search: $10/K
const OPENROUTER_MODEL_GPT_5_2_CHAT = "openai/gpt-5.2-chat"
OpenAI GPT-5.2 Chat (Instant) Released: 2026 Input $1.75/M Output $14.00/M Context 128,000 Web Search: $10/K
const OPENROUTER_MODEL_GPT_5_2_CODEX = "openai/gpt-5.2-codex"
OpenAI GPT-5.2 Codex Released: 2026 Input $1.75/M Output $14.00/M Context 400,000 Web Search: $10/K
const OPENROUTER_MODEL_GPT_5_2_PRO = "openai/gpt-5.2-pro"
OpenAI GPT-5.2 Pro Released: 2026 Input $21.00/M Output $168.00/M Context 400,000 Web Search: $10/K
const OPENROUTER_MODEL_GPT_5_IMAGE = "openai/gpt-5-image"
OpenAI GPT-5 Image Released: 2025 Input $10.00/M Output $10/M Context 400,000
const OPENROUTER_MODEL_GPT_5_IMAGE_MINI = "openai/gpt-5-image-mini"
OpenAI GPT-5 Image Mini Released: 2025 Input $2.50/M Output $2/M Context 1,048,576
const OPENROUTER_MODEL_GPT_5_NANO = "openai/gpt-5-nano"
OpenAI GPT-5 Nano Released: 2025 Input $0.05/M Output $0.40/M Context 400,000
const OPENROUTER_MODEL_GPT_6_ASTRA = "openai/gpt-6-astra"
OpenAI GPT-6 Astra Released: 2026-09 Input $10/M Output $50/M Context 1,050,000
const OPENROUTER_MODEL_GPT_ASTRA_LATEST = "openai/gpt-astra-latest"
OpenAI GPT Astra Latest (alias — always redirects to the latest Astra) Released: 2026-09 Input $10/M Output $50/M Context 1,050,000
const OPENROUTER_MODEL_GPT_LUNA_LATEST = "openai/gpt-luna-latest"
OpenAI GPT Luna Latest (alias — always redirects to the latest Luna) Released: 2026-09 Input $0.20/M Output $1.20/M Context 1,050,000
const OPENROUTER_MODEL_GPT_OSS_120B = "openai/gpt-oss-120b"
OpenAI GPT-OSS-120B Released: 2025-08 Input $0.072/M Output $0.28/M Context 131,072
const OPENROUTER_MODEL_GPT_OSS_20B = "openai/gpt-oss-20b"
OpenAI GPT-OSS-20B Released: 2025-08 Input $0.04/M Output $0.15/M Context 131,072
const OPENROUTER_MODEL_GPT_SOL_LATEST = "openai/gpt-sol-latest"
OpenAI GPT Sol Latest (alias — always redirects to the latest Sol) Released: 2026-09 Input $2/M Output $10/M Context 1,050,000
const OPENROUTER_MODEL_GPT_TERRA_LATEST = "openai/gpt-terra-latest"
OpenAI GPT Terra Latest (alias — always redirects to the latest Terra) Released: 2026-09 Input $2/M Output $12/M Context 1,050,000
const OPENROUTER_MODEL_GRANITE_4_0_H_MICRO = "ibm-granite/granite-4.0-h-micro"
IBM Granite 4.0 H Micro Released: 2025 Input $0.017/M Output $0.11/M Context 131,072
const OPENROUTER_MODEL_GROK_3 = "x-ai/grok-3"
xAI Grok 3 Released: 2025 Input $3.00/M Output $15.00/M Context 131,072
const OPENROUTER_MODEL_GROK_3_MINI = "x-ai/grok-3-mini"
xAI Grok 3 Mini Released: 2025 Input $0.30/M Output $0.50/M Context 131,072
const OPENROUTER_MODEL_GROK_4 = "x-ai/grok-4"
xAI Grok 4 Released: 2025 Input $3.00/M Output $15.00/M Context 256,000
const OPENROUTER_MODEL_JEV_1_13 = "typesafe/jev-1.13"
TypeSafe Jev 1.13 Released: 2026 Input $0.042/M Output $0.00/M Context 65,536
const OPENROUTER_MODEL_KIMI_K2_5 = "moonshotai/kimi-k2.5"
MoonshotAI Kimi K2.5 Released: 2025 Input $0.45/M Output $2.25/M Context 262,144
const OPENROUTER_MODEL_LING_3_0_FLASH = "inclusionai/ling-3.0-flash"
InclusionAI Ling 3.0 Flash Released: 2026-07 Input $0.021/M Output $0.063/M Context 262,144
const OPENROUTER_MODEL_LING_3_0_FLASH_FIN = "inclusionai/ling-3.0-flash-fin"
InclusionAI Ling 3.0 Flash Fin (finance-flavored variant) Released: 2026 Input $0.06/M Output $0.18/M Context 262,144
const OPENROUTER_MODEL_LING_3_0_FLASH_VL = "inclusionai/ling-3.0-flash-vl"
InclusionAI Ling 3.0 Flash VL Released: 2026-09 Input $0.06/M Output $0.18/M Context 131,072
const OPENROUTER_MODEL_LLAMA_3_1_8B_INSTRUCT = "meta-llama/llama-3.1-8b-instruct"
Meta Llama 3.1 8B Instruct Released: 2024 Input $0.05/M Output $0.08/M Context 131,072
const OPENROUTER_MODEL_LLAMA_3_2_1B_INSTRUCT = "meta-llama/llama-3.2-1b-instruct"
Meta Llama 3.2 1B Instruct Released: 2024 Input $0.027/M Output $0.20/M Context 60,000
const OPENROUTER_MODEL_LLAMA_3_3_70B_INSTRUCT = "meta-llama/llama-3.3-70b-instruct"
Meta Llama 3.3 70B Instruct Released: 2024 Input $0.10/M Output $0.32/M Context 131,072
const OPENROUTER_MODEL_LLAMA_4_SCOUT = "meta-llama/llama-4-scout"
Meta Llama 4 Scout Released: 2025 Input $0.10/M Output $0.30/M Context 1,000,000
const OPENROUTER_MODEL_MERCURY_2_5 = "inception/mercury-2.5"
Inception Mercury 2.5 Released: 2026-09 Input $0.04/M Output $0.15/M Context 260,000
const OPENROUTER_MODEL_MICROSOFT_DECISION_1 = "microsoft/microsoft-decision-1"
Microsoft Decision-1 Released: 2026-10 Input $0.042/M Output $0.00/M Context 33,000
const OPENROUTER_MODEL_MIMO_V2_FLASH = "xiaomi/mimo-v2-flash"
Xiaomi MiMo-V2-Flash Released: 2025 Input $0.09/M Output $0.29/M Context 262,144
const OPENROUTER_MODEL_MINIMAX_M2_1 = "minimax/minimax-m2.1"
MiniMax M2.1 Released: 2025 Input $0.27/M Output $0.95/M Context 196,608
const OPENROUTER_MODEL_MINIMAX_M3 = "minimax/minimax-m3"
MiniMax M3 Released: 2026 Input $0.23/M Output $0.96/M Context 1,000,000
const OPENROUTER_MODEL_MISTRAL_EMBED_2312 = "mistralai/mistral-embed-2312"
Mistral Mistral Embedding 2312 Released: 2023-12 Input $0.10/M Output $0.00/M
const OPENROUTER_MODEL_MISTRAL_MEDIUM_3_1 = "mistralai/mistral-medium-3.1"
Mistral Mistral Medium 3.1 Released: 2025 Input $0.40/M Output $2/M Context 131,072
const OPENROUTER_MODEL_MISTRAL_NEMO = "mistralai/mistral-nemo"
Mistral Mistral Nemo Released: 2024 Input $0.02/M Output $0.04/M Context 131,072
const OPENROUTER_MODEL_MISTRAL_SMALL_3_2_24B_INSTRUCT = "mistralai/mistral-small-3.2-24b-instruct"
Mistral Mistral Small 3.2 24B Instruct Released: 2025 Input $0.075/M Output $0.20/M Context 131,072
const OPENROUTER_MODEL_O4_MINI = "openai/o4-mini"
OpenAI O4 Mini Released: 2025 Input $1.10/M Output $4.40/M Context 200,000
const OPENROUTER_MODEL_QWEN_3_235B_A22B_INSTRUCT_2507 = "qwen/qwen3-235b-a22b-2507"
Qwen Qwen3 235B A22B Instruct 2507 Released: 2025-07 Input $0.078/M Output $0.312/M Context 262,144
const OPENROUTER_MODEL_QWEN_3_30B_A3B = "qwen/qwen3-30b-a3b"
Qwen Qwen3 30B A3B Released: 2025 Input $0.02/M Output $0.08/M Context 40,960
const OPENROUTER_MODEL_QWEN_3_7_FLASH = "qwen/qwen3.7-flash"
Qwen Qwen3.7 Flash Released: 2026 Input $0.03/M Output $0.13/M Context 1,048,576
const OPENROUTER_MODEL_QWEN_3_8_FLASH = "qwen/qwen3.8-flash"
Qwen Qwen3.8 Flash Released: 2026-08 Input $0.15/M Output $0.47/M Context 1,000,000
const OPENROUTER_MODEL_QWEN_3_8_MAX = "qwen/qwen3.8-max"
Qwen Qwen3.8 Max Released: 2026 Input $2/M Output $6/M Context 1,000,000
const OPENROUTER_MODEL_QWEN_3_CODER_NEXT = "qwen/qwen3-coder-next"
Qwen Qwen3 Coder Next Released: 2025 Input $0.07/M Output $0.30/M Context 262,144
const OPENROUTER_MODEL_QWEN_3_EMBEDDING_0_6B = "qwen/qwen3-embedding-0.6b"
Qwen Qwen3 Embedding 0.6B Released: 2025 Input $0.01/M Output $0.00/M
const OPENROUTER_MODEL_QWEN_3_MAX_THINKING = "qwen/qwen3-max-thinking"
Qwen Qwen3 Max Thinking Released: 2025 Input $1.20/M Output $6.00/M Context 262,144
const OPENROUTER_MODEL_RECRAFT_V4_1 = "recraft/recraft-v4.1"
Recraft Recraft V4.1
const OPENROUTER_MODEL_RECRAFT_V4_1_FLASH = "recraft/recraft-v4.1-flash"
Recraft Recraft V4.1 Flash
const OPENROUTER_MODEL_SCHEMATRON_V2_SMALL = "inference-net/schematron-v2-small"
Inference.net Schematron V2 Small Released: 2026-09 Input $0.05/M Output $0.23/M Context 128,000
const OPENROUTER_MODEL_SCHEMATRON_V2_TURBO = "inference-net/schematron-v2-turbo"
Inference.net Schematron V2 Turbo Released: 2026-09 Input $0.03/M Output $0.15/M Context 128,000
const OPENROUTER_MODEL_SEED_1_6 = "bytedance-seed/seed-1.6"
ByteDance Seed 1.6 Released: 2025 Input $0.25/M Output $2.00/M Context 262,144
const OPENROUTER_MODEL_SEED_1_6_FLASH = "bytedance-seed/seed-1.6-flash"
ByteDance Seed 1.6 Flash Released: 2025 Input $0.075/M Output $0.30/M Context 262,144
const OPENROUTER_MODEL_SOLAR_DECIDE_FLASH = "upstage/solar-decide-flash"
Upstage Solar Decide Flash Released: 2026-10 Input $0.05/M Output $0.00/M Context 524,288
const OPENROUTER_MODEL_STEP_3_5_FLASH = "stepfun/step-3.5-flash"
StepFun Step 3.5 Flash Released: 2025 Input $0.10/M Output $0.30/M Context 256,000
const OPENROUTER_MODEL_TEXT_EMBEDDING_3_LARGE = "openai/text-embedding-3-large"
OpenAI Text Embedding 3 Large Released: 2024 Input $0.13/M Output $0.00/M
const OPENROUTER_MODEL_TEXT_EMBEDDING_3_SMALL = "openai/text-embedding-3-small"
OpenAI Text Embedding 3 Small Released: 2024 Input $0.02/M Output $0.00/M
const OPENROUTER_MODEL_TEXT_EMBEDDING_ADA_002 = "openai/text-embedding-ada-002"
OpenAI Text Embedding Ada 002 Released: 2022 Input $0.10/M Output $0.00/M
const VERTEX_MODEL_GEMINI_1_5_FLASH = "gemini-1.5-flash"
Vertex AI Gemini 1.5 Flash Released: 2024-05 Input $0.075/M Output $0.30/M Context 1,048,576
const VERTEX_MODEL_GEMINI_1_5_PRO = "gemini-1.5-pro"
Vertex AI Gemini 1.5 Pro Released: 2024-05 Input $1.25/M Output $5.00/M Context 2,097,152
const VERTEX_MODEL_GEMINI_2_0_FLASH = "gemini-2.0-flash-001"
Vertex AI Gemini 2.0 Flash Released: 2024-12 Input $0.10/M Output $0.40/M Context 1,048,576
const VERTEX_MODEL_GEMINI_2_0_FLASH_EXP_IMAGE_GENERATION = "gemini-2.0-flash-exp-image-generation"
Vertex AI Gemini 2.0 Flash Exp Image Generation Released: 2024-12 Experimental image generation model
const VERTEX_MODEL_GEMINI_2_0_FLASH_LITE = "gemini-2.0-flash-lite-001"
Vertex AI Gemini 2.0 Flash Lite Released: 2025-02 Input $0.075/M Output $0.30/M Context 1,048,576
const VERTEX_MODEL_GEMINI_2_5_FLASH = "gemini-2.5-flash"
Vertex AI Gemini 2.5 Flash Released: 2025 Input $0.30/M Output $2.50/M Context 1,048,576
const VERTEX_MODEL_GEMINI_2_5_FLASH_LITE = "gemini-2.5-flash-lite"
Vertex AI Gemini 2.5 Flash Lite Released: 2025 Input $0.10/M Output $0.40/M Context 1,048,576
const VERTEX_MODEL_GEMINI_2_5_PRO = "gemini-2.5-pro"
Vertex AI Gemini 2.5 Pro Released: 2025 Input $1.25/M Output $10.00/M Context 1,048,576
const VERTEX_MODEL_GEMINI_3_1_FLASH_LITE = "gemini-3.1-flash-lite"
Vertex AI Gemini 3.1 Flash Lite Released: 2026 Input $0.25/M Output $1.50/M Context 1,048,576
const VERTEX_MODEL_GEMINI_3_5_FLASH = "gemini-3.5-flash"
Vertex AI Gemini 3.5 Flash Released: 2026-05 Input $1.50/M Output $9.00/M Context 1,048,576
const VERTEX_MODEL_GEMINI_3_5_FLASH_LITE = "gemini-3.5-flash-lite"
Vertex AI Gemini 3.5 Flash Lite Released: 2026-07 Input $0.30/M Output $2.50/M Context 1,048,576
const VERTEX_MODEL_GEMINI_3_6_FLASH = "gemini-3.6-flash"
Vertex AI Gemini 3.6 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576
const VERTEX_MODEL_GEMINI_3_7_FLASH = "gemini-3.7-flash"
Vertex AI Gemini 3.7 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576
const VERTEX_MODEL_GEMINI_3_8_FLASH = "gemini-3.8-flash"
Vertex AI Gemini 3.8 Flash Released: 2026 Input $0.75/M Output $3.75/M Context 1,048,576 (introductory price)
const VERTEX_MODEL_GEMINI_3_FLASH_PREVIEW = "gemini-3-flash-preview"
Vertex AI Gemini 3 Flash Preview Released: 2026 Input $0.50/M Output $3.00/M Context 1,048,576
const VERTEX_MODEL_GEMINI_3_PRO_PREVIEW = "gemini-3-pro-preview"
Vertex AI Gemini 3 Pro Preview Released: 2026 Input $2.00/M Output $12.00/M Context 1,048,576
const VERTEX_MODEL_IMAGEN_3_0 = "imagen-3.0-generate-002"
Vertex AI Imagen 3.0 Generate 002 Released: 2024 $0.030/image
Variables ¶
This section is empty.
Functions ¶
func CountTokens ¶
CountTokens provides a simple approximation of token counting Note: This is a basic implementation and not accurate for all models Production code should use model-specific tokenizers
func EstimateMaxTokens ¶
EstimateMaxTokens estimates the maximum number of tokens that could be generated given the model's context window size and the prompt length
func PtrFloat64 ¶ added in v1.3.0
PtrFloat64 returns a pointer to the given float64 value. This is a convenience helper for setting Temperature in LlmOptions.
func RegisterCustomProvider ¶ added in v0.2.0
func RegisterCustomProvider(name string, factory LlmFactory)
RegisterCustomProvider registers a custom LLM provider
func RegisterProvider ¶ added in v0.2.0
func RegisterProvider(provider Provider, factory LlmFactory)
RegisterProvider registers a new LLM provider factory
Types ¶
type AgentInterface ¶ added in v0.2.0
type AgentInterface interface {
// SetRole sets the role of the agent
// i.e. "You are a helpful assistant"
SetRole(role string)
// GetRole returns the role of the agent
GetRole() string
// SetTask sets the task for the agent
// i.e. "Your task is to write a book about self-improvement"
SetTask(task string)
// GetTask returns the task of the agent
GetTask() string
// Execute runs the agent and returns the response
Execute() (response string, err error)
}
AgentInterface defines the core interface that all agents must implement
type Answer ¶ added in v1.8.0
type Answer struct {
// Noul is the probability-of-yes for QuestionNoul.
Noul float64 `json:"noul,omitempty"`
// Choice is the selected option for QuestionChoice.
Choice string `json:"choice,omitempty"`
// Score is the probability-weighted position for QuestionScore.
Score float64 `json:"score,omitempty"`
// Probabilities carries per-option/per-level probabilities where the
// API returns them.
Probabilities map[string]float64 `json:"probabilities,omitempty"`
// Confidence is the model's self-reported confidence.
Confidence float64 `json:"confidence,omitempty"`
}
Answer is one question's typed result.
type LlmFactory ¶ added in v0.2.0
type LlmFactory func(options LlmOptions) (LlmInterface, error)
LlmFactory is a function type that creates a new LLM instance Now returns (LlmInterface, error)
type LlmInterface ¶ added in v0.2.0
type LlmInterface interface {
// GenerateText generates a text response from the LLM based on the given prompt
GenerateText(systemPrompt string, userPrompt string, options ...LlmOptions) (string, error)
// GenerateJSON generates a JSON response from the LLM based on the given prompt
GenerateJSON(systemPrompt string, userPrompt string, options ...LlmOptions) (string, error)
// GenerateImage generates an image from the LLM based on the given prompt
GenerateImage(prompt string, options ...LlmOptions) ([]byte, error)
// DEPRECATED: Generate generates a response from the LLM based on the given prompt and options
Generate(systemPrompt string, userMessage string, options ...LlmOptions) (string, error)
// GenerateEmbedding generates embeddings for the given text
GenerateEmbedding(text string) ([]float32, error)
// Decide answers typed questions about a state object with
// calibrated probabilities (System One decision models — see the
// DECISION MODELS block below). Providers without a decisions
// endpoint return an error. Use DecisionModel (factory.go) to
// construct one directly.
Decide(state map[string]any, questions map[string]Question, options ...LlmOptions) (map[string]Answer, error)
}
LlmInterface is an interface for making LLM API calls
func DecisionModel ¶ added in v1.8.0
func DecisionModel(provider Provider, options LlmOptions) (LlmInterface, error)
DecisionModel creates a decision model (System One) — answers typed questions about a state object with calibrated probabilities rather than generating text. See interfaces.go for the supported models.
func ImageModel ¶
func ImageModel(provider Provider, options LlmOptions) (LlmInterface, error)
ImageModel creates an LLM model for image output
func JSONModel ¶
func JSONModel(provider Provider, options LlmOptions) (LlmInterface, error)
JSONModel creates an LLM model for JSON output
func NewLLM ¶ added in v0.2.0
func NewLLM(options LlmOptions) (LlmInterface, error)
NewLLM creates a new LLM instance based on the provider specified in options
func TextModel ¶
func TextModel(provider Provider, options LlmOptions) (LlmInterface, error)
TextModel creates an LLM model for text output
type LlmOptions ¶ added in v0.2.0
type LlmOptions struct {
// Provider specifies which LLM provider to use
Provider Provider
// MockResponse, if not empty, will be returned by the mock implementation
// instead of making an actual API call. This is useful for testing.
MockResponse string `json:"-"`
// MockError, if not nil, will be returned by the mock implementation
// instead of making an actual API call. This is useful for testing
// failure paths. MockError takes precedence over MockResponse.
MockError error `json:"-"`
// Context, if not nil, will be used for the API call, allowing callers
// to cancel in-flight requests or apply deadlines. When nil,
// context.Background() is used.
Context context.Context `json:"-"`
// Timeout, if greater than zero, sets the HTTP client timeout for
// providers that construct their own client. When zero, each provider's
// default is used (30s for Anthropic, Custom and Gemini; no timeout for
// the OpenAI-compatible providers).
Timeout time.Duration
// DisableResponseFormat, when true, prevents the provider from sending
// a response_format parameter. Useful for providers/models that reject
// structured-output requests (e.g. some OpenRouter routes for
// GenerateJSON).
DisableResponseFormat bool
// ApiKey specifies the API key for the LLM provider
ApiKey string
// ProjectID specifies the project ID for the LLM (used by Vertex AI)
ProjectID string
// Region specifies the region for the LLM (used by Vertex AI)
Region string
// Model specifies the LLM model to use
Model string
// MaxTokens specifies the maximum number of tokens to generate
MaxTokens int
// Temperature controls the randomness of the response.
// A higher temperature (e.g., 0.8) makes the output more random and creative,
// while a lower temperature (e.g., 0.2) makes the output more focused and deterministic.
// Use PtrFloat64(0.7) to set, or leave nil to use the provider default.
Temperature *float64
// Verbose controls whether to log detailed information
Verbose bool
// Logger specifies a logger to use for error logging
Logger *slog.Logger
// OutputFormat specifies the output format from the LLM
OutputFormat OutputFormat
// Tools declares functions the model may call (used by
// GenerateWithTools on providers implementing ToolsInterface).
Tools []Tool
// ToolChoice controls tool usage: ToolChoiceAuto (default),
// ToolChoiceNone, ToolChoiceRequired, or a tool name to force.
ToolChoice string
// Messages carries prior conversation turns for tool-enabled
// conversations. When non-empty, they are inserted between the
// system prompt and the user prompt.
Messages []Message
// Additional options specific to the LLM provider
ProviderOptions map[string]any
}
type Message ¶ added in v1.9.0
type Message struct {
// Role is one of RoleSystem/RoleUser/RoleAssistant/RoleTool.
Role string `json:"role"`
// Content is the text body of the message.
Content string `json:"content,omitempty"`
// ToolCalls is set on assistant messages that requested tools
// (use ToolResponse.Message verbatim).
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
// ToolCallID is set on RoleTool messages to match the call answered.
ToolCallID string `json:"tool_call_id,omitempty"`
// Name optionally names the tool that produced a RoleTool message.
Name string `json:"name,omitempty"`
}
Message is one turn in a tool-enabled conversation, supplied via LlmOptions.Messages to continue a conversation after executing tools.
type MockCall ¶ added in v1.5.0
type MockCall struct {
Method string // e.g. "Generate", "GenerateText", "GenerateJSON"
SystemPrompt string
UserPrompt string
Options LlmOptions
}
MockCall records a single call made to the mock implementation.
type MockInterface ¶ added in v1.5.0
type MockInterface interface {
LlmInterface
// Calls returns a copy of all recorded calls in invocation order.
Calls() []MockCall
// Reset clears the recorded call history.
Reset()
}
MockInterface is implemented by the mock provider. It extends LlmInterface with introspection so tests can assert which calls were made. Obtain it via a type assertion on the LlmInterface returned by the factory:
mock, ok := engine.(llm.MockInterface)
if ok { _ = mock.Calls() }
type OutputFormat ¶
type OutputFormat string
OutputFormat specifies the desired output format from the LLM
const ( OutputFormatText OutputFormat = "text" OutputFormatJSON OutputFormat = "json" OutputFormatXML OutputFormat = "xml" OutputFormatYAML OutputFormat = "yaml" OutputFormatEnum OutputFormat = "enum" OutputFormatImagePNG OutputFormat = "image/png" OutputFormatImageJPG OutputFormat = "image/jpeg" )
type Question ¶ added in v1.8.0
type Question struct {
// Type is one of QuestionNoul/QuestionChoice/QuestionScore.
Type string `json:"type"`
// Instructions is the natural-language question.
Instructions string `json:"instructions"`
// Criteria gives plain-language definitions per outcome — for noul
// the keys are "true"/"false"; tuning criteria usually beats tuning
// thresholds.
Criteria map[string]string `json:"criteria,omitempty"`
// Options lists the allowed answers for QuestionChoice.
Options []string `json:"options,omitempty"`
// Scale lists the ordered labels for QuestionScore.
Scale []string `json:"scale,omitempty"`
}
Question is one typed decision question keyed by name in the request.
type Tool ¶ added in v1.9.0
type Tool struct {
// Type is the tool type (e.g. "function", "openrouter:web_search", "web_search").
// When empty, defaults to "function".
Type string `json:"type,omitempty"`
// Name is the function identifier the model will call.
Name string `json:"name,omitempty"`
// Description tells the model when to use the tool.
Description string `json:"description,omitempty"`
// Parameters is a JSON Schema object describing the arguments.
// When nil and Type is "function", an empty object schema is sent.
Parameters map[string]any `json:"parameters,omitempty"`
// Strict requests strict schema adherence where the provider supports it.
Strict bool `json:"strict,omitempty"`
}
Tool describes a callable function or server tool exposed to the model.
type ToolCall ¶ added in v1.9.0
type ToolCall struct {
// ID correlates the call with its tool-result message.
ID string `json:"id,omitempty"`
// Type is the tool call type (e.g. "function").
Type string `json:"type,omitempty"`
// Name is the requested function.
Name string `json:"name,omitempty"`
// Arguments is the raw JSON argument object produced by the model.
Arguments string `json:"arguments,omitempty"`
}
ToolCall is a single function invocation requested by the model.
type ToolResponse ¶ added in v1.9.0
type ToolResponse struct {
// Content is the assistant's text (may be empty when tools are called).
Content string
// ToolCalls lists the function invocations the model requested.
ToolCalls []ToolCall
// Message is the assistant turn; append it to LlmOptions.Messages
// (followed by RoleTool result messages) to continue the loop.
Message Message
}
ToolResponse is the result of GenerateWithTools.
type ToolsInterface ¶ added in v1.9.0
type ToolsInterface interface {
LlmInterface
// GenerateWithTools runs one chat completion round with the tools
// declared in LlmOptions.Tools. It does not execute tools — the
// caller inspects ToolCalls, runs them, and calls again with
// LlmOptions.Messages carrying the assistant turn and tool results.
GenerateWithTools(systemPrompt string, userPrompt string, options ...LlmOptions) (ToolResponse, error)
}
ToolsInterface is an optional extension of LlmInterface for providers whose models support function/tool calling. Obtain via type assertion.
Source Files
¶
- agent_interface.go
- anthropic_implementation.go
- anthropic_models.go
- constants.go
- custom_implementation.go
- factory.go
- functions.go
- gemini_implementation.go
- gemini_models.go
- interfaces.go
- mock_implementation.go
- openai_implementation.go
- openai_models.go
- openrouter_implementation.go
- openrouter_models.go
- tokens.go
- tools.go
- vertex_implementation.go
- vertex_models.go