You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose conversation ID to agents for conversation continuity
- Capture conversation ID from metadata events in streaming response
- Append conversation ID to response for new conversations
- Log conversation ID for debugging
- Agents can now see and use conversation IDs for follow-up questions
This enables proper conversation continuity - agents receive the conversation ID
after their first question and can use it in subsequent calls.
conversation_id_note=f"\n\n---\n**Conversation ID:** `{conversation_metadata['conversationId']}`\n*Use this ID in the `conversation_id` parameter to continue this conversation.*"
154
+
full_response+=conversation_id_note
155
+
136
156
returnfull_responseor"No content returned from the API. Please check that your data sources are accessible and try again."
0 commit comments