Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Conversation] Finish how-to #4462

Open
wants to merge 1 commit into
base: v1.15
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Let's get started using the [conversation API]({{< ref conversation-overview.md

- Set up one of the available Dapr components (echo) that work with the conversation API.
- Add the conversation client to your application.
- Run the connection using `dapr run`.

## Set up the conversation component

Expand Down Expand Up @@ -130,6 +131,84 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {

{{< /tabs >}}

## Run the conversation connection

Start the connection using the `dapr run` command. For example, for this scenario, we're running `dapr run` on an application with the app ID `conversation` and pointing to our conversation YAML file in the `./config` directory.

{{< tabs ".NET" "Go" "Rust" >}}

<!-- .NET -->
{{% codetab %}}

```bash
dapr run --app-id conversation --dapr-grpc-port 50001 --log-level debug --resources-path ./config -- dotnet run
```

{{% /codetab %}}

<!-- Go -->
{{% codetab %}}

```bash
dapr run --app-id conversation --dapr-grpc-port 50001 --log-level debug --resources-path ./config -- go run ./main.go
```

**Expected output**

```
- '== APP == conversation output: hello world'
```

{{% /codetab %}}

<!-- Rust -->
{{% codetab %}}

```bash
dapr run --app-id=conversation --resources-path ./config --dapr-grpc-port 3500 -- cargo run --example conversation
```

**Expected output**

```
- 'conversation input: hello world'
- 'conversation output: hello world'
```

{{% /codetab %}}

{{< /tabs >}}

## Related links

Try out the conversation API using the full examples provided in the SDK repos.


{{< tabs ".NET" "Go" "Rust" >}}

<!-- .NET -->
{{% codetab %}}

todo

{{% /codetab %}}

<!-- Go -->
{{% codetab %}}

[Dapr conversation example with the Go SDK](https://github.com/dapr/go-sdk/tree/main/examples/conversation)

{{% /codetab %}}

<!-- Rust -->
{{% codetab %}}

[Dapr conversation example with the Rust SDK](https://github.com/dapr/rust-sdk/tree/main/examples/src/conversation)

{{% /codetab %}}

{{< /tabs >}}


## Next steps

Expand Down
Loading