Skip to content
Night Brownie Night Brownie

Anthropic

Anthropic LLM backend via LiteLLM.

Classes:

AnthropicBackend

AnthropicBackend(config: LLMConfig)

Bases: LLMBackend

LLM backend that calls Anthropic models through LiteLLM.

Parameters:

  • config (LLMConfig) –

    The LLM configuration section from the Night Brownie runtime config.

Methods:

  • complete

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

complete

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

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

Parameters:

  • prompt (str) –

    The user prompt to send to the model.

  • system (str | None, default: None ) –

    Optional system prompt.

Returns:

  • str

    The model's text response.