-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[ai.agentserver] add azure-ai-agentserver-agentframework and azure-ai-agentserver-langgraph to agentserver #43861
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
Conversation
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.
Pull Request Overview
This PR introduces a comprehensive agent server framework for Azure AI, consisting of two main packages:
azure-ai-agentserver-core: Core server infrastructure for hosting agentsazure-ai-agentserver-langgraph: LangGraph-specific adapter implementation
The implementation provides a standardized way to host AI agents as HTTP services with OpenTelemetry observability, supporting both streaming and non-streaming responses.
Reviewed Changes
Copilot reviewed 158 out of 166 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| shared_requirements.txt | Adds dependencies for agent server packages |
| sdk/agentserver/ci.yml, tests.yml, platform-matrix.json | CI/CD pipeline configuration for the new agentserver SDK |
| azure-ai-agentserver-core/* | Core package with base agent server, request handling, and ID generation |
| azure-ai-agentserver-langgraph/* | LangGraph adapter with state converters and streaming support |
| samples/* | Multiple sample implementations demonstrating various agent patterns |
Comments suppressed due to low confidence (1)
sdk/agentserver/azure-ai-agentserver-langgraph/samples/custom_state/main.py:1
- Using
eval()on user input is a security risk as it can execute arbitrary Python code. Consider usingast.literal_eval()for safe evaluation or a proper expression parser library.
sdk/agentserver/azure-ai-agentserver-langgraph/samples/simple_react_agent/main.py
Show resolved
Hide resolved
...ntserver/azure-ai-agentserver-langgraph/samples/simple_agent_with_redis_checkpointer/main.py
Show resolved
Hide resolved
sdk/agentserver/azure-ai-agentserver-langgraph/samples/mcp_simple/mcp_simple.py
Show resolved
Hide resolved
sdk/agentserver/azure-ai-agentserver-langgraph/samples/mcp_apikey/mcp_apikey.py
Show resolved
Hide resolved
...server/azure-ai-agentserver-langgraph/samples/simple_agent_with_redis_checkpointer/README.md
Show resolved
Hide resolved
sdk/agentserver/azure-ai-agentserver-langgraph/samples/simple_react_agent/main.py
Show resolved
Hide resolved
...ntserver/azure-ai-agentserver-langgraph/samples/simple_agent_with_redis_checkpointer/main.py
Show resolved
Hide resolved
sdk/agentserver/azure-ai-agentserver-core/samples/bilingual_weekend_planner/README.md
Show resolved
Hide resolved
...i-agentserver-langgraph/azure/ai/agentserver/langgraph/models/langgraph_request_converter.py
Outdated
Show resolved
Hide resolved
…compatible python version
|
for the tests failing due to mindependency we can disable that as well until -core gets released, and we can do that in each pyproject.toml as well under the tools.build section -> and hopefully that makes this ci green ---> see pyporject.toml comment instead |
sdk/agentserver/azure-ai-agentserver-agentframework/pyproject.toml
Outdated
Show resolved
Hide resolved
sdk/agentserver/azure-ai-agentserver-agentframework/CHANGELOG.md
Outdated
Show resolved
Hide resolved
sdk/agentserver/azure-ai-agentserver-agentframework/pyproject.toml
Outdated
Show resolved
Hide resolved
|
@lusu-msft fyi this pr is going to fail on bandit even though we are disabling it, bandit is a check that we actually require to run on all packages -> once we get this pr to a point where bandit is the only check failing that can be our equivalent to the pr being green and we can override it and merge. @scbedd will help unblock us on the eng sys side :) |
|
@lusu-msft can we add these two packages as artifacts to the ci.yml
ai azure-sdk-for-python/sdk/ai/ci.yml Line 58 in 90a9226
|
lmazuel
left a comment
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.
Approving based on offline discussion about the status of the package. The Bandit job is related to this package not supporting 3.9, which has been approved. We manually checked using a more recent of Python that Bandit do not raise any security issue on the package.
Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new API spec, a link to the pull request containing these API spec changes should be included above.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines