Conversation Text

Conversation Text facilitates real-time communication by relaying spoken statements from both the user and the assistant.

What is ConversationTextMessage

The ConversationText message is a JSON message that will be sent as a user interacts with the agent.

Receiving ConversationText

The server will send a ConversationText message every time the agent hears the user say something, and every time the agent speaks something. These can be used on the client side to display the conversation messages as they happen in real-time.

{
  "type": "ConversationText",
  "role": "", // The speaker of this statement, either "user" or "assistant"
  "content": "" // The statement that was spoken
}

Conclusion

The ConversationText message facilitates real-time communication by relaying spoken statements from both the user and the assistant. This ensures that the conversation can be dynamically displayed on the client side, enhancing transparency and providing a clear, synchronized view of the interaction as it unfolds.