Skip to content

Commit 899e7d6

Browse files
committed
Update AzureAIAgentClient import paths
Changed imports from 'agent_framework.azure' to 'agent_framework_azure_ai' for AzureAIAgentClient in foundry_agent.py and reasoning_agent.py. Also removed an unused import in lifecycle.py to clean up dependencies.
1 parent f94c27d commit 899e7d6

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/backend/af/magentic_agents/common/lifecycle.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from azure.ai.projects.aio import AIProjectClient
88
from azure.identity.aio import DefaultAzureCredential
99

10-
from agent_framework.azure import AzureAIAgentClient
1110
from agent_framework import HostedMCPTool
1211

1312
from af.magentic_agents.models.agent_models import MCPConfig

src/backend/af/magentic_agents/foundry_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from typing import List, Optional
55

66
from azure.ai.agents.models import Agent, AzureAISearchTool, CodeInterpreterToolDefinition
7-
from agent_framework.azure import AzureAIAgentClient
7+
from agent_framework_azure_ai import AzureAIAgentClient
88
from agent_framework import ChatMessage, Role, ChatOptions, HostedMCPTool
99

1010
from af.magentic_agents.common.lifecycle import AzureAgentBase

src/backend/af/magentic_agents/reasoning_agent.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
import uuid
44
from dataclasses import dataclass
55
from typing import AsyncIterator, List, Optional
6-
7-
from agent_framework.azure import AzureAIAgentClient
6+
from agent_framework_azure_ai import AzureAIAgentClient
87
from agent_framework import (
98
ChatMessage,
109
ChatOptions,

0 commit comments

Comments
 (0)