Skip to content

Commit 27a11e5

Browse files
committed
fix build
1 parent dee9a5e commit 27a11e5

File tree

25 files changed

+145
-55
lines changed

25 files changed

+145
-55
lines changed

sdk/ai/azure-ai-agentserver-agentframework/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ recursive-include doc *.rst *.md
66
include azure/__init__.py
77
include azure/ai/__init__.py
88
include azure/ai/agentserver/__init__.py
9+
include azure/ai/agentserver/agentframework/py.typed

sdk/ai/azure-ai-agentserver-agentframework/README.md

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# Azure AI Agent Server adapter for agent-framework
22

3-
## Install
43

5-
In current folder, run:
4+
## Getting started
5+
66
```bash
7-
pip install -e .
7+
pip install azure-ai-agentserver-agentframework
88
```
99

10-
## Usage
10+
11+
## Key concepts
12+
13+
Azure AI Agent Server wraps your Agent-frameworl agent, and host it on the cloud.
14+
15+
16+
## Examples
1117

1218
```python
1319
# your existing agent
@@ -21,3 +27,32 @@ if __name__ == "__main__":
2127
from_agent_framework(my_awesome_agent).run()
2228

2329
```
30+
31+
## Troubleshooting
32+
33+
First run your agent with azure-ai-agentserver-agentframework locally.
34+
35+
If it works on local by failed on cloud. Check your logs in the application insight connected to your Azure AI Foundry Project.
36+
37+
38+
## Next steps
39+
40+
Please visit [Samples](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/ai/azure-ai-agentserver-agentframework/samples) folder. There are several samples for you to build your agent with azure-ai-agentserver
41+
42+
43+
## Contributing
44+
45+
This project welcomes contributions and suggestions. Most contributions require
46+
you to agree to a Contributor License Agreement (CLA) declaring that you have
47+
the right to, and actually do, grant us the rights to use your contribution.
48+
For details, visit https://cla.microsoft.com.
49+
50+
When you submit a pull request, a CLA-bot will automatically determine whether
51+
you need to provide a CLA and decorate the PR appropriately (e.g., label,
52+
comment). Simply follow the instructions provided by the bot. You will only
53+
need to do this once across all repos using our CLA.
54+
55+
This project has adopted the
56+
[Microsoft Open Source Code of Conduct][code_of_conduct]. For more information,
57+
see the Code of Conduct FAQ or contact [email protected] with any
58+
additional questions or comments.

sdk/ai/azure-ai-agentserver-agentframework/azure/ai/agentserver/agentframework/py.typed

Whitespace-only changes.

sdk/ai/azure-ai-agentserver-agentframework/pyproject.toml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,24 @@ name = "azure-ai-agentserver-agentframework"
44
dynamic = ["version", "readme"]
55
description = "Agents server adapter for Azure AI"
66
requires-python = ">=3.10"
7-
authors = [{ name = "Microsoft Corporation" }]
8-
classifiers = ["Programming Language :: Python :: 3", "Programming Language :: Python :: 3.10"]
7+
authors = [
8+
{ name = "Microsoft Corporation", email = "[email protected]" },
9+
]
10+
license = "MIT"
11+
classifiers = [
12+
"Programming Language :: Python",
13+
"Programming Language :: Python :: 3 :: Only",
14+
"Programming Language :: Python :: 3",
15+
"Programming Language :: Python :: 3.10",
16+
"Programming Language :: Python :: 3.11",
17+
"Programming Language :: Python :: 3.12",
18+
"Programming Language :: Python :: 3.13",
19+
]
20+
keywords = ["azure", "azure sdk"]
921

1022
dependencies = [
1123
"azure-ai-agentserver-core",
12-
"agent_framework_azure_ai==1.0.0b251007",
24+
"agent_framework_azure_ai>=1.0.0b251007",
1325
"opentelemetry-exporter-otlp-proto-grpc>=1.36.0",
1426
]
1527

@@ -30,6 +42,9 @@ exclude = [
3042
version = { attr = "azure.ai.agentserver.agentframework._version.VERSION" }
3143
readme = { file = ["README.md"], content-type = "text/markdown" }
3244

45+
[tool.setuptools.package-data]
46+
pytyped = ["py.typed"]
47+
3348
[tool.ruff]
3449
line-length = 120
3550
target-version = "py311"
@@ -38,5 +53,9 @@ lint.ignore = []
3853
fix = false
3954

4055
[tool.ruff.lint.isort]
41-
known-first-party = ["azure.ai.agentserver.agentframework"] # Your package/module name
56+
known-first-party = ["azure.ai.agentserver.agentframework"]
4257
combine-as-imports = true
58+
59+
[tool.azure-sdk-build]
60+
verifytypes = false # has unknown dependencies
61+
pyright = false

sdk/ai/azure-ai-agentserver-agentframework/samples/basic_simple/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,6 @@ This sample demonstrates how to use the agents hosting adapter with Microsoft Ag
77

88
> **Azure sign-in:** Run `az login` before starting the sample so `DefaultAzureCredential` can acquire a CLI token.
99
10-
### Install Dependencies
11-
12-
Initialize a virtual environment and then install dependencies:
13-
14-
```bash
15-
pip install ../../wheels/azure_ai_agentshosting-0.0.1+g407f536.d251024-py3-none-any.whl
16-
pip install -r ./requirements.txt --pre
17-
```
18-
1910
### Environment Variables
2011

2112
Copy `.envtemplate` to `.env` and supply:

sdk/ai/azure-ai-agentserver-agentframework/samples/mcp_apikey/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@ This sample mirrors the simpler `mcp_simple` Agent Framework sample but adds an
1111

1212
> **Azure sign-in:** Run `az login` before starting the sample so `DefaultAzureCredential` can acquire a CLI token.
1313
14-
### Install Dependencies
15-
16-
Initialize a virtual environment and then install dependencies:
17-
18-
```bash
19-
pip install ../../wheels/azure_ai_agentshosting-0.0.1+g407f536.d251024-py3-none-any.whl
20-
pip install -r ./requirements.txt --pre
21-
```
22-
2314
### Environment Variables
2415

2516
Copy `.envtemplate` to `.env` and supply:

sdk/ai/azure-ai-agentserver-agentframework/samples/mcp_simple/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ pip install agent-framework-azure-ai azure-identity python-dotenv
2828
curl -sS \
2929
# Agent Framework MCP Simple Python Sample
3030

31-
This sample demonstrates how to run a Microsoft Agent Framework `ChatAgent` that calls a Model Context Protocol (MCP) HTTP endpoint (Microsoft Learn MCP) using the agents hosting adapter and the `AzureOpenAIChatClient` from the `agent-framework` package.
31+
This sample demonstrates how to run a Microsoft Agent Framework `ChatAgent` that calls a Model Context Protocol (MCP) HTTP endpoint (Microsoft Learn MCP) using the agentserver adapter and the `AzureOpenAIChatClient` from the `agent-framework` package.
3232

3333
## What It Shows
3434

3535
- Creating an Agent Framework `ChatAgent` with an `AzureOpenAIChatClient`
3636
- Adding an MCP tool via `MCPStreamableHTTPTool`
37-
- Serving the agent over HTTP using the agents hosting adapter (`from_agent_framework(...).run()`)
37+
- Serving the agent over HTTP using the agentserver adapter (`from_agent_framework(...).run()`)
3838
- Handling both streaming and non‑streaming response modes (client controlled via the `stream` flag in the request body)
3939

4040
## File Overview

sdk/ai/azure-ai-agentserver-agentframework/samples/simple_async/README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@ This sample demonstrates how to use the agents hosting adapter in an async imple
66

77
> **Azure sign-in:** Run `az login` before starting the sample so `DefaultAzureCredential` can acquire a CLI token.
88
9-
### Install Dependencies
10-
11-
Initialize a virtual environment and then install dependencies:
12-
13-
```bash
14-
pip install ../../wheels/azure_ai_agentshosting-0.0.1+g407f536.d251024-py3-none-any.whl
15-
pip install -r ./requirements.txt --pre
16-
```
17-
189
### Environment Variables
1910

2011
Copy `.envtemplate` to `.env` and supply:
@@ -32,7 +23,7 @@ Follow these steps from this folder:
3223
1) Start the agent server (defaults to 0.0.0.0:8088):
3324

3425
```bash
35-
python minimal_example.py
26+
python minimal_async_example.py
3627
```
3728

3829
2) Send a non-streaming request (returns a single JSON response):

sdk/ai/azure-ai-agentserver-langgraph/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.0.0
3+
## 1.0.0a1 (2025-11-06)
44

55
### Features Added
66

0 commit comments

Comments
 (0)