Anthropic
Detailed information on the Anthropic conversation component
Component format
A Dapr conversation.yaml component file has the following structure:
apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
name: anthropic
spec:
type: conversation.anthropic
metadata:
- name: key
value: "mykey"
- name: model
value: claude-3-5-sonnet-20240620
- name: responseCacheTTL
value: 10m
Warning
The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets, as described here.Spec metadata fields
| Field | Required | Details | Example |
|---|---|---|---|
key | Y | API key for Anthropic. | "mykey" |
model | N | The Anthropic LLM to use. Defaults to claude-3-5-sonnet-20240620 | claude-3-5-sonnet-20240620 |
responseCacheTTL | N | Time-to-live for the in-memory response cache. When set, identical requests are served from cache until they expire. | 10m |