From 2a9367884d709638dc5ad2da7a317bf1ba3f2c63 Mon Sep 17 00:00:00 2001 From: Whit Waldo Date: Sun, 13 Apr 2025 16:56:02 -0500 Subject: [PATCH] Added local echo conversation component (#4587) * Added local echo conversation component Signed-off-by: Whit Waldo * Update daprdocs/content/en/reference/components-reference/supported-conversation/local-echo.md Co-authored-by: Alice Gibbons Signed-off-by: Whit Waldo * Update local-echo.md Fixed repeated text Signed-off-by: Mark Fussell * Update generic.yaml Marking Echo stable, since it is only used for local testing Signed-off-by: Mark Fussell --------- Signed-off-by: Whit Waldo Signed-off-by: Mark Fussell Co-authored-by: Alice Gibbons Co-authored-by: Mark Fussell --- .../supported-conversation/local-echo.md | 28 +++++++++++++++++++ .../data/components/conversation/generic.yaml | 5 ++++ 2 files changed, 33 insertions(+) create mode 100644 daprdocs/content/en/reference/components-reference/supported-conversation/local-echo.md diff --git a/daprdocs/content/en/reference/components-reference/supported-conversation/local-echo.md b/daprdocs/content/en/reference/components-reference/supported-conversation/local-echo.md new file mode 100644 index 000000000..e2a2770a3 --- /dev/null +++ b/daprdocs/content/en/reference/components-reference/supported-conversation/local-echo.md @@ -0,0 +1,28 @@ +--- +type: docs +title: "Local Testing" +linkTitle: "Echo" +description: Detailed information on the echo conversation component used for local testing +--- + +## Component format + +A Dapr `conversation.yaml` component file has the following structure: + +```yaml +apiVersion: dapr.io/v1alpha1 +kind: Component +metadata: + name: echo +spec: + type: conversation.echo + version: v1 +``` + +{{% alert title="Information" color="warning" %}} +This component is only meant for local validation and testing of a Conversation component implementation. It does not actually send the data to any LLM but rather echos the input back directly. +{{% /alert %}} + +## Related links + +- [Conversation API overview]({{< ref conversation-overview.md >}}) diff --git a/daprdocs/data/components/conversation/generic.yaml b/daprdocs/data/components/conversation/generic.yaml index b8961c868..48eab18af 100644 --- a/daprdocs/data/components/conversation/generic.yaml +++ b/daprdocs/data/components/conversation/generic.yaml @@ -23,3 +23,8 @@ state: Alpha version: v1 since: "1.15" +- component: Local echo + link: local-echo + state: Stable + version: v1 + since: "1.15"