Update conversation ID in copilot studio client when start_conversation is called#195
Conversation
…on is called from response header
There was a problem hiding this comment.
Pull Request Overview
This PR fixes a bug where the conversation ID was not being persisted after starting a new conversation. The fix captures the x-ms-conversationid header from successful HTTP responses and stores it in _current_conversation_id to ensure subsequent ask_question calls target the correct conversation.
Key Changes:
- Added logic to extract and persist the conversation ID from response headers after successful API calls
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
...icrosoft-agents-copilotstudio-client/microsoft_agents/copilotstudio/client/copilot_client.py
Outdated
Show resolved
Hide resolved
|
This pull request fixes this issue - #194 |
|
Could you run black ./libraries |
Removed trailing space to fix formatting
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Fix ### Details