GoogleAI

Detailed information on the GoogleAI conversation component

Component format

A Dapr conversation.yaml component file has the following structure:

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: googleai
spec:
  type: conversation.googleai
  metadata:
  - name: key
    value: mykey
  - name: model
    value: gemini-1.5-flash
  - name: cacheTTL
    value: 10m

Spec metadata fields

Field Required Details Example
key Y API key for GoogleAI. mykey
model N The GoogleAI LLM to use. Defaults to gemini-1.5-flash. gemini-2.0-flash
cacheTTL N A time-to-live value for a prompt cache to expire. Uses Golang duration format. 10m