-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[agentserver] azure-ai-agentserver-responses package #46052
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
Open
ankitbko
wants to merge
90
commits into
main
Choose a base branch
from
agentserver/responses
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
90 commits
Select commit
Hold shift + click to select a range
5da12d4
create starlette package (#45754)
lusu-msft 57c63a3
Lusu/response 0317 (#45757)
lusu-msft df45208
Lusu/response 0317 rename (#45764)
lusu-msft 3d93cf2
response server apis (#45807)
lusu-msft 682afbc
remove old path
lusu-msft 11f7747
add samples
lusu-msft 9d03cf8
update pyproject
lusu-msft e040678
refining host
lusu-msft 89e351e
refined builders and hosting
lusu-msft f8c8cec
refined package structur
lusu-msft ee6ee6b
remove unused code
lusu-msft d787997
add keep alive
lusu-msft 8559738
fix minors
lusu-msft 6b0bf7c
fix pytests
lusu-msft 490a8ef
add file headers
lusu-msft d4c2800
add docstring for hosting
lusu-msft b4b290c
add conftest
lusu-msft 93128da
add docstring
lusu-msft 84592d6
exclude scripts
lusu-msft 2d56d1b
add dev_requirement
lusu-msft d6efaf7
fix build
lusu-msft bc7ee65
fix build
lusu-msft d4acc08
fix generate models
lusu-msft 1174338
fix pylint build
lusu-msft a44525d
add ResponseIncompleteReason
lusu-msft a98b3ea
refined stream
lusu-msft 594728b
fix mypy
lusu-msft 5afc89f
add ci
lusu-msft 1c72226
fix build
lusu-msft 0c68c5a
fix keyword
lusu-msft 90c1a9b
fix stream with background
lusu-msft 55ddab6
ensure all contract cases covered
lusu-msft 534a435
refined _rounting.py
lusu-msft 9000a31
fix stream payload
lusu-msft 9fc9e17
fix pylint
lusu-msft 8f6525c
fix build
lusu-msft 831f6cf
refining orchestrator
lusu-msft fb0407c
refining storing
lusu-msft 7395b71
add foundry storage provider
lusu-msft 48ac861
update response handler to decorator
lusu-msft 5d5fabf
remove dataclass
lusu-msft 36d234a
fix build
lusu-msft cb3098b
fix sphinx
lusu-msft d015835
try fix langchain-azure-ai version
lusu-msft c0db1d8
Merge branch 'main' into agentserver/invoke-reponses
lusu-msft 5556989
Add agent server hosting and invocation packages (#45916)
zhiyong-gayang 923e18d
Refactor responses package to leverage hosting for server hosting and…
zhiyong-gayang 4bd38ab
[agentserver-responses] refining response orchestration (#45923)
lusu-msft f29f8bb
[agentserver][responses] fix replay stuck (#45930)
lusu-msft ec36581
Lusu/response refining (#45936)
lusu-msft 69e3c20
Lusu/response refining (#45944)
lusu-msft 342b0b9
rename -hosting to -core (#45946)
lusu-msft fcab75c
rename AgentHost (#45948)
lusu-msft 637a5d0
Merge branch 'main' into agentserver/invoke-reponses
lusu-msft e5cc1a4
Remove redundant default_fetch_history_count_value from ResponsesServ…
Copilot 63c15c2
remove old -af and -lg from ci
lusu-msft c36ec43
Merge branch 'agentserver/invoke-reponses' of https://github.com/Azur…
lusu-msft 85351f9
fix multiprotocol sample
lusu-msft ed26075
address PR #45925 review comments for -core and -invocations
zhiyong-gayang 77c2558
add streaming and multi-turn invocation samples aligned to .NET
zhiyong-gayang 7445ddd
add FoundryEnrichmentSpanProcessor to enrich all spans with agent ide…
zhiyong-gayang 0fe56bb
resolving comments
lusu-msft 5042838
Merge branch 'agentserver/invoke-reponses' of https://github.com/Azur…
lusu-msft f4be95c
[agentserver] remove nested methods in samples (#45977)
lusu-msft 22d12ed
fix apistub
lusu-msft e883b7e
update typespec and generated models
lusu-msft eba760c
fix helper
lusu-msft 146d738
remove output_message
lusu-msft d5e6e3d
rename health endpoint from /healthy to /readiness
zhiyong-gayang f5f5006
update otel (#46003)
lusu-msft 4a03dda
add _on_ending method to FoundryEnrichmentSpanProcessor
zhiyong-gayang 9ca93b5
Implement S-047 (x-agent-response-id header) and S-048 (agent_session…
Copilot 3565ea2
Add unit tests for S-047 (Response ID Resolution) and S-048 (Session …
Copilot 89168b1
Add CHANGELOG.md, set __version__, remove wildcard import, fix README…
Copilot af21b19
Address code review feedback: clean up test, add comment for partitio…
Copilot 236f125
[response] update validator and minor fix (#46029)
lusu-msft e56d46c
deleted MAF and langchain adapter
8c0da79
fixed broken tests
a34ff41
Replace static-method classes with module-level functions and add tra…
0993b68
Replace raw httpx with azure.core.AsyncPipelineClient in Foundry prov…
d1089da
Replace getattr(request, 'model', None) with request.model in README
42e88b0
Remove azure-ai-agentserver-responses from this PR
11251af
Revert "Remove azure-ai-agentserver-responses from this PR"
3478a29
Merge branch 'main' into agentserver/invoke-reponses
e9aee07
Restore azure-ai-agentserver-agentframework and azure-ai-agentserver-…
5950ed5
Fix invoke_agent span parenting so framework child spans nest correct…
singankit 8c186a1
Fix/responses span parenting (#46068)
singankit 3e850af
added dev status inactive classifier
2a430bf
Merge branch 'agentserver/invoke-reponses' into agentserver/responses
01e6eac
Merge branch 'agentserver/responses' of https://github.com/Azure/azur…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,21 @@ | ||
| # Release History | ||
|
|
||
| ## 1.0.0b1 (2025-11-07) | ||
| ## 2.0.0b1 (Unreleased) | ||
|
|
||
| ### Features Added | ||
|
|
||
| First version | ||
| - `AgentHost` host framework with health probe (`/readiness`), graceful shutdown, and port binding. | ||
| - `TracingHelper` for OpenTelemetry tracing with Azure Monitor and OTLP exporters. | ||
| - Auto-enable tracing when Application Insights or OTLP endpoint is configured. | ||
| - W3C Trace Context propagation and `leaf_customer_span_id` baggage re-parenting. | ||
| - `create_error_response()` utility for standard error envelope responses. | ||
| - `get_logger()` for library-scoped logging. | ||
| - `register_routes()` for pluggable protocol composition. | ||
| - Hypercorn-based ASGI server with HTTP/1.1 support. | ||
|
|
||
| ### Breaking Changes | ||
|
|
||
| - Replaced `ErrorResponse.create()` static method with module-level `create_error_response()` function. | ||
| - Replaced `AgentLogger.get()` static method with module-level `get_logger()` function. | ||
| - Removed `AGENT_LOG_LEVEL` and `AGENT_GRACEFUL_SHUTDOWN_TIMEOUT` environment variable support from `Constants`. | ||
| - Renamed health endpoint from `/healthy` to `/readiness`. | ||
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) |
2 changes: 1 addition & 1 deletion
2
sdk/agentserver/azure-ai-agentserver-core/azure/ai/agentserver/__init__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) |
33 changes: 27 additions & 6 deletions
33
sdk/agentserver/azure-ai-agentserver-core/azure/ai/agentserver/core/__init__.py
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,35 @@ | ||
| # --------------------------------------------------------- | ||
| # Copyright (c) Microsoft Corporation. All rights reserved. | ||
| # --------------------------------------------------------- | ||
| """Azure AI AgentHost core framework. | ||
|
|
||
| Provides the :class:`AgentHost` host and shared utilities for | ||
| building Azure AI Hosted Agent containers. | ||
|
|
||
| Public API:: | ||
|
|
||
| from azure.ai.agentserver.core import ( | ||
| get_logger, | ||
| AgentHost, | ||
| Constants, | ||
| create_error_response, | ||
| TracingHelper, | ||
| ) | ||
| """ | ||
| __path__ = __import__("pkgutil").extend_path(__path__, __name__) | ||
|
|
||
| from ._base import AgentHost | ||
| from ._constants import Constants | ||
| from ._errors import create_error_response | ||
| from ._logger import get_logger | ||
| from ._tracing import TracingHelper | ||
| from ._version import VERSION | ||
| from .logger import configure as config_logging | ||
| from .server.base import FoundryCBAgent | ||
| from .server.common.agent_run_context import AgentRunContext | ||
|
|
||
| config_logging() | ||
|
|
||
| __all__ = ["FoundryCBAgent", "AgentRunContext"] | ||
| __all__ = [ | ||
| "get_logger", | ||
| "AgentHost", | ||
| "Constants", | ||
| "create_error_response", | ||
| "TracingHelper", | ||
| ] | ||
| __version__ = VERSION |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR description/title state this is an independent review of the
azure-ai-agentserver-responsespackage, but the diff also includes broad refactors inazure-ai-agentserver-core, introducesazure-ai-agentserver-invocations, and removes large portions oflanggraph/agentframeworkpackages. If this scope is intended, please update the PR title/description to match; otherwise, consider splitting these changes so the Responses package review isn’t blocked by unrelated removals/refactors.