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

update bedrock documentation to include support for doc handling #4795

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from 2 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 @@ -111,14 +111,18 @@ Ensure the model is available in your region, that your model can invoke the `Co
:::

- `New Message` is either the first message (to start a conversation) or is the next message from an already started conversation.
- `Documents` is a list of documents to include as part of your **new message**.
- To work with documents you must upload them first, [using the REST API](https://docs.camunda.io/docs/apis-tools/camunda-api-rest/specifications/upload-document-alpha/) for example.
mesellings marked this conversation as resolved.
Show resolved Hide resolved
- The result of the endpoint must then be assigned to a variable in **Start Process Instance** so you can use the list of these variables in the **Documents** field.
- `Message History` is the history of the conversation that should always be passed. If not set, this will be a new conversation.

1. Use **Result Variable** to store the response in a process variable. For example, `myResultVariable`.
2. Use **Result Expression** to map fields from the response into process variables.

The response contains two elements:
The **Response** is a list of consecutive messages of the user and the assistant.

- `messageHistory` is the full history of the previous message, from user and assistant, including the latest message written by the assistant.
- `newMessage` is the latest message written by the assistant.
:::info important
The current implementation supports the assistant's responses only in text format.
:::

Ideally, the message's history must transit within the process and be the input of this `Converse` task with the new message.
Loading