quickstarts/conversation/go/http
Elena Kolevska 5e711424d6
Removes 1-15 prefix for docs (#1171)
Signed-off-by: Elena Kolevska <elena@kolevska.com>
Co-authored-by: Yaron Schneider <schneider.yaron@live.com>
2025-02-27 10:39:56 -08:00
..
conversation Conversation quickstarts updates - Python and Go (#1169) 2025-02-27 08:29:23 -08:00
README.md Removes 1-15 prefix for docs (#1171) 2025-02-27 10:39:56 -08:00
dapr.yaml Update conversation/go/http/dapr.yaml 2025-01-23 09:15:23 -08:00
makefile COnverstaion API 2025-01-19 21:19:51 -08:00

README.md

Dapr Conversation API (Go HTTP)

In this quickstart, you'll send an input to a mock Large Language Model (LLM) using Dapr's Conversation API. This API is responsible for providing one consistent API entry point to talk to underlying LLM providers.

Visit this link for more information about Dapr and the Conversation API.

Note: This example leverages HTTP requests only. If you are looking for the example using the Dapr Client SDK (recommended) click here.

This quickstart includes one app:

  • conversation.go, responsible for sending an input to the underlying LLM and retrieving an output.

Run the app with the template file

This section shows how to run the application using the multi-app run template files with dapr run -f ..

This example uses the default LLM Component provided by Dapr which simply echoes the input provided, for testing purposes. Here are other supported Conversation components.

Open a new terminal window and run the multi app run template:

dapr run -f .

The terminal console output should look similar to this, where:

  • The app sends an input What is dapr? to the echo Component mock LLM.
  • The mock LLM echoes What is dapr?.
== APP - conversation == Input sent: What is dapr?
== APP - conversation == Output response: What is dapr?
  1. Stop and clean up application processes.
dapr stop -f .