Skip to main content

StandardAnthropicLLMService

Description

A Controller Service that provides integration with Anthropic's Claude AI models through their Messages API. Supports configurable parameters including model selection, response generation settings (temperature, top_p, top_k), token limits, and retry behavior.

Tags

AI, API, Anthropic, Claude, LLM, Language Model

Properties

In the list below required Properties are shown with an asterisk (*). Other properties are considered optional. The table also indicates any default values, and whether a property supports the NiFi Expression Language.

Display NameAPI NameDefault ValueAllowable ValuesDescription
Web Client Service *Web Client ServiceController Service:
WebClientServiceProvider

Implementations:
StandardWebClientServiceProvider
The Web Client Service to use for communicating with the LLM provider.
Anthropic API Key *Anthropic API KeyThe API Key for authenticating to Anthropic
Model Name *Model Nameclaude-3-5-sonnet-latestThe name of the Anthropic model

Supports Expression Language, using FlowFile attributes and Environment variables.
TemperatureTemperatureThe temperature to use for generating the response.

Supports Expression Language, using FlowFile attributes and Environment variables.
Top PTop PThe top_p value for nucleus sampling. It controls the diversity of the generated responses.

Supports Expression Language, using FlowFile attributes and Environment variables.
Top KTop KThe top K value to use for generating the response. Only sample from the top K options for each subsequent token. Recommended for advanced use cases only. You usually only need to use temperature.

Supports Expression Language, using FlowFile attributes and Environment variables.
User IDUser IDThe user id to set in the request metadata

Supports Expression Language, using FlowFile attributes and Environment variables.
Max Response Tokens *Max Response Tokens1000The maximum number of tokens to generate in the response.

Supports Expression Language, using FlowFile attributes and Environment variables.
Max Retries *Max Retries3The maximum number of retry attempts for API calls
Backoff Base Delay (ms) *Backoff Base Delay (ms)1000The base delay in milliseconds for exponential backoff between retries

State Management

This component does not store state.

Restricted

This component is not restricted.

System Resource Considerations

This component does not specify system resource considerations.

See Also