Skip to content

Anthropic

Anthropic LLM backend via LiteLLM.

CLASS DESCRIPTION
AnthropicBackend

LLM backend that calls Anthropic models through LiteLLM.

Classes

AnthropicBackend

AnthropicBackend(config: LLMConfig)

Bases: LLMBackend

LLM backend that calls Anthropic models through LiteLLM.

PARAMETER DESCRIPTION
config

The LLM configuration section from the Foreman runtime config.

TYPE: LLMConfig

METHOD DESCRIPTION
complete

Send a prompt to an Anthropic model and return the text response.

Functions

complete
complete(prompt: str, system: str | None = None) -> str

Send a prompt to an Anthropic model and return the text response.

PARAMETER DESCRIPTION
prompt

The user prompt to send to the model.

TYPE: str

system

Optional system prompt.

TYPE: str | None DEFAULT: None

RETURNS DESCRIPTION
str

The model's text response.