Anthropic Models

Anthropic model components provide access to Claude family of language models from Anthropic.

Anthropic

This component allows the generation of text using Anthropic Chat and Language models.

For more information, see the Anthropic documentation.

Inputs

Name
Type
Description

max_tokens

Integer

The maximum number of tokens to generate. Set to 0 for unlimited tokens. Default: 4096.

model

String

The name of the Anthropic model to use. Options include various Claude 3 models.

anthropic_api_key

SecretString

Your Anthropic API key for authentication.

temperature

Float

Controls randomness in the output. Default: 0.1.

anthropic_api_url

String

Endpoint of the Anthropic API. Defaults to https://api.anthropic.com if not specified (advanced).

prefill

String

Prefill text to guide the model's response (advanced).

Outputs

Name
Type
Description

model

LanguageModel

An instance of ChatAnthropic configured with the specified parameters.

Usage Notes

  • Claude Models: Access to Anthropic's Claude family including Claude 3 Haiku, Sonnet, and Opus

  • Constitutional AI: Built with Anthropic's Constitutional AI principles for helpful, harmless, and honest responses

  • Large Context Windows: Claude models support very large context windows for processing extensive documents

  • Advanced Reasoning: Particularly strong at complex reasoning, analysis, and following detailed instructions

Last updated