Available on crate feature
models only.Expand description
Curated provider model catalog, lifecycle metadata, and recommended defaults. Curated model identifiers, lifecycle metadata, and provider defaults.
Provider catalogs change independently and often expose deployment-scoped or account-scoped identifiers. This module therefore distinguishes curated ADK recommendations from exhaustive provider discovery:
crate::catalog::recommended_modelreturns a stable ADK default only where a portable provider-level model ID exists.crate::catalog::lookup_modeldescribes model IDs whose lifecycle ADK knows about.crate::catalog::validate_model_selectionaccepts unknown IDs so private, fine-tuned, newly released, and deployment-scoped models remain usable, but rejects identifiers known to be retired.
Azure AI, Amazon Bedrock, and Volcano Engine Ark intentionally have no universal default. Their model or deployment identifiers vary by resource, region, account, or endpoint and must be supplied explicitly.
Structs§
- Model
Catalog Entry - One curated model-catalog entry.
Enums§
- Model
Lifecycle - Lifecycle state for a model identifier.
- Model
Role - Intended workload role of a curated model.
Constants§
- ANTHROPIC_
DEFAULT - Recommended Anthropic model balancing capability, latency, and cost.
- BAIDU_
DEFAULT - Recommended Baidu Qianfan model.
- CARTESIA_
DEFAULT - Recommended Cartesia text-to-speech model.
- CATALOG_
AS_ OF - Date on which the bundled catalog was verified against provider documentation.
- CEREBRAS_
DEFAULT - Recommended Cerebras production model.
- COHERE_
DEFAULT - Recommended Cohere model.
- DEEPGRAM_
DEFAULT - Recommended Deepgram speech-to-text model.
- DEEPSEEK_
DEFAULT - Recommended DeepSeek model for general agent workloads.
- FIREWORKS_
DEFAULT - Recommended Fireworks balanced model.
- GEMINI_
DEFAULT - Recommended Google Gemini model for general agent workloads.
- GEMINI_
EMBEDDING_ DEFAULT - Recommended Gemini embedding model.
- GEMINI_
LIVE_ DEFAULT - Recommended Gemini Live model.
- GEMINI_
TRANSCRIPTION_ DEFAULT - Recommended Gemini speech-to-text model.
- GEMINI_
TTS_ DEFAULT - Recommended Gemini text-to-speech model.
- GROQ_
DEFAULT - Recommended Groq production model.
- KNOWN_
PROVIDERS - Providers known to the catalog, including deployment-scoped providers.
- MINIMAX_
DEFAULT - Recommended MiniMax model. Model IDs are case-sensitive.
- MISTRAL_
DEFAULT - Recommended Mistral general-purpose model alias.
- MODEL_
CATALOG - Curated model entries bundled with ADK-Rust.
- OLLAMA_
DEFAULT - Suggested local Ollama model. The model must already be installed locally.
- OPENAI_
DEFAULT - Recommended OpenAI model balancing capability, latency, and cost.
- OPENAI_
EMBEDDING_ DEFAULT - Recommended OpenAI embedding model.
- OPENAI_
LIVE_ TRANSCRIPTION_ DEFAULT - Recommended OpenAI live transcription model.
- OPENAI_
REALTIME_ DEFAULT - Recommended OpenAI Realtime model.
- OPENROUTER_
DEFAULT - Recommended OpenRouter model. Callers should use model discovery for user-facing pickers.
- PERPLEXITY_
DEFAULT - Recommended Perplexity Sonar model.
- SAMBANOVA_
DEFAULT - Recommended SambaNova production model.
- TOGETHER_
DEFAULT - Recommended Together AI balanced model.
- XAI_
DEFAULT - Recommended xAI model.
- ZHIPU_
DEFAULT - Recommended Zhipu model.
Functions§
- lookup_
model - Look up lifecycle metadata for a provider model ID.
- recommended_
model - Return the curated portable default for a provider.
- requires_
explicit_ model - Return whether a provider requires an account-, endpoint-, or deployment-specific model ID.
- validate_
model_ selection - Validate a model selection without preventing newly released or private IDs.
- warn_
if_ obsolete - Emit a structured warning for a known deprecated or retired model.