chore: update agentserver version - #919
Merged
Merged
Conversation
Wenxing Zhu (Wixee)
approved these changes
Aug 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the azure-ai-agentserver-* dependency versions used by the langchain_azure_ai hosting integration, aligning the host + converters + tests with the newer request/event/item shapes required for resilient long-running + checkpoint features.
Changes:
- Bump
azure-ai-agentserver-core,azure-ai-agentserver-invocations, andazure-ai-agentserver-responsesversions in thehostingextra. - Update
ResponsesHostServerrequest handling to treatCreateResponseas a mapping (usingrequest.get(...)). - Update converters and unit tests to use dict-style access for events/items and to set required
typefields on model payloads.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| libs/azure-ai/tests/unit_tests/agents/hosting/test_stream.py | Adjusts streaming event assertions to use dict-based event payloads (event["type"], event["delta"], etc.). |
| libs/azure-ai/tests/unit_tests/agents/hosting/test_responses_host.py | Updates request construction and message item shaping to match updated CreateResponse / item schema expectations. |
| libs/azure-ai/tests/unit_tests/agents/hosting/test_hitl.py | Updates HITL-related test items to include explicit type fields and align with dict-based access patterns. |
| libs/azure-ai/tests/unit_tests/agents/hosting/test_converters.py | Updates converter tests to include explicit item type fields and align with updated input item shapes. |
| libs/azure-ai/pyproject.toml | Bumps azure-ai-agentserver-* versions in the hosting optional dependency set. |
| libs/azure-ai/langchain_azure_ai/agents/hosting/_responses_host.py | Switches request field access from attribute-based (getattr) to mapping-based (request.get). |
| libs/azure-ai/langchain_azure_ai/agents/hosting/_converters/_request.py | Adds TypeGuards and migrates item/content handling to dict-key access for function calls, outputs, and messages. |
| libs/azure-ai/langchain_azure_ai/agents/hosting/_converters/_hitl.py | Migrates HITL item handling to dict-key access and stamps emitted MCP approval requests with type="mcp_approval_request". |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update agentserver version which the resilient long running and checkpoint feature depends on.