Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions python/packages/azure-ai/agent_framework_azure_ai/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ async def prepare_options(

return run_options

async def initialize_client(self):
async def initialize_client(self) -> None:
"""Initialize OpenAI client asynchronously."""
self.client = await self.project_client.get_openai_client() # type: ignore

Expand All @@ -322,11 +322,7 @@ def _update_agent_name(self, agent_name: str | None) -> None:

def get_mcp_tool(self, tool: HostedMCPTool) -> MutableMapping[str, Any]:
"""Get MCP tool from HostedMCPTool."""
mcp: MCPTool = {
"type": "mcp",
"server_label": tool.name.replace(" ", "_"),
"server_url": str(tool.url),
}
mcp = MCPTool(server_label=tool.name.replace(" ", "_"), server_url=str(tool.url))

if tool.allowed_tools:
mcp["allowed_tools"] = list(tool.allowed_tools)
Expand Down
5 changes: 1 addition & 4 deletions python/packages/azure-ai/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers = [
]
dependencies = [
"agent-framework-core",
"azure-ai-projects >= 2.0.0a20251110001",
"azure-ai-projects == 2.0.0b1",
"azure-ai-agents == 1.2.0b5",
"aiohttp",
]
Expand Down Expand Up @@ -86,6 +86,3 @@ test = "pytest --cov=agent_framework_azure_ai --cov-report=term-missing:skip-cov
[build-system]
requires = ["flit-core >= 3.11,<4.0"]
build-backend = "flit_core.buildapi"

[tool.uv.sources]
azure-ai-projects = { index = "azure-sdk-for-python" }
2 changes: 1 addition & 1 deletion python/packages/core/agent_framework/openai/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __init__(self, *, model_id: str | None = None, client: AsyncOpenAI | None =
for key, value in kwargs.items():
setattr(self, key, value)

async def initialize_client(self):
async def initialize_client(self) -> None:
"""Initialize OpenAI client asynchronously.

Override in subclasses to initialize the OpenAI client asynchronously.
Expand Down
5 changes: 0 additions & 5 deletions python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,6 @@ url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true

[[tool.uv.index]]
name = "azure-sdk-for-python"
url = "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-python/pypi/simple"
explicit = true

[tool.flit.module]
name = "agent_framework_meta"

Expand Down
10 changes: 5 additions & 5 deletions python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading