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: cacheTTL  value: 10m 

Spec metadata fields

FieldRequiredDetailsExample
keyYAPI key for Anthropic."mykey"
modelNThe Anthropic LLM to use. Defaults to claude-3-5-sonnet-20240620claude-3-5-sonnet-20240620
cacheTTLNA time-to-live value for a prompt cache to expire. Uses Golang duration format.10m