Skip to content

Commit 52bd01f

Browse files
ManuInNZyaron2
andauthored
Feature/converstion/googleai/1.16 (#4611)
* add documentation for GoogleAI conversation component Signed-off-by: Emmanuel Auffray <[email protected]> * add GoogleAI component to conversation documentation Signed-off-by: Emmanuel Auffray <[email protected]> --------- Signed-off-by: Emmanuel Auffray <[email protected]> Co-authored-by: Yaron Schneider <[email protected]>
1 parent 49d74a5 commit 52bd01f

File tree

2 files changed

+47
-0
lines changed
  • daprdocs
    • content/en/reference/components-reference/supported-conversation
    • data/components/conversation

2 files changed

+47
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
type: docs
3+
title: "GoogleAI"
4+
linkTitle: "GoogleAI"
5+
description: Detailed information on the GoogleAI conversation component
6+
---
7+
8+
## Component format
9+
10+
A Dapr `conversation.yaml` component file has the following structure:
11+
12+
```yaml
13+
apiVersion: dapr.io/v1alpha1
14+
kind: Component
15+
metadata:
16+
name: googleai
17+
spec:
18+
type: conversation.googleai
19+
metadata:
20+
- name: key
21+
value: mykey
22+
- name: model
23+
value: gemini-1.5-flash
24+
- name: cacheTTL
25+
value: 10m
26+
```
27+
28+
{{% alert title="Warning" color="warning" %}}
29+
The above example uses secrets as plain strings. It is recommended to use a secret store for the secrets, as described [here]({{< ref component-secrets.md >}}).
30+
{{% /alert %}}
31+
32+
## Spec metadata fields
33+
34+
| Field | Required | Details | Example |
35+
|--------------------|:--------:|---------|---------|
36+
| `key` | Y | API key for GoogleAI. | `mykey` |
37+
| `model` | N | The GoogleAI LLM to use. Defaults to `gemini-1.5-flash`. | `gemini-2.0-flash` |
38+
| `cacheTTL` | N | A time-to-live value for a prompt cache to expire. Uses Golang duration format. | `10m` |
39+
40+
## Related links
41+
42+
- [Conversation API overview]({{< ref conversation-overview.md >}})

daprdocs/data/components/conversation/generic.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,9 @@
2727
link: ollama
2828
state: Alpha
2929
version: v1
30+
since: "1.16"
31+
- component: GoogleAI
32+
link: googleai
33+
state: Alpha
34+
version: v1
3035
since: "1.16"

0 commit comments

Comments
 (0)