Skip to main content
Define LLM configurations that agents and teams use for inference.

agno/models/anthropic

Configures an Anthropic Claude model.

Config

Outputs

Example

Dependencies

Depends on: Nothing directly, but api_key typically uses a FieldReference to a pragma/secret resource. Depended on by:
  • agno/agent — as the required model
  • agno/team — as the optional team lead model
  • agno/memory/manager — as the optional classification model

Notes

  • Both model types are stateless — they wrap configuration without making API calls during creation.
  • The api_key field supports FieldReferences for injecting secrets from a pragma/secret resource.
  • The base_url field on the OpenAI model allows you to use OpenAI-compatible APIs (e.g., Azure OpenAI, local models).