Skip to content

Commit 17f7569

Browse files
committed
Refactor backend to use agent_framework and af modules
Replaced references to deprecated Semantic Kernel and v3 modules with agent_framework (af) equivalents throughout backend, database, and test files. Removed obsolete messages_kernel and utils_kernel files, updated import paths, and fixed minor typos. Updated documentation and README to reflect new entry points and usage.
1 parent 64a4ca7 commit 17f7569

File tree

15 files changed

+290
-577
lines changed

15 files changed

+290
-577
lines changed

docs/DeploymentGuide.md

Lines changed: 94 additions & 89 deletions
Large diffs are not rendered by default.

src/backend/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Execute backend API Service
2+
23
```shell
3-
uv run uvicorn app_kernel:app --port 8000
4-
```
4+
uv run uvicorn app:app --port 8000
5+
```

src/backend/af/common/services/agents_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import logging
1313
from typing import Any, Dict, List, Union
1414

15-
from common.models.messages_kernel import TeamAgent, TeamConfiguration
15+
from common.models.messages_af import TeamAgent, TeamConfiguration
1616
from af.common.services.team_service import TeamService
1717

1818

src/backend/af/orchestration/human_approval_manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
ORCHESTRATOR_TASK_LEDGER_PLAN_UPDATE_PROMPT,
2020
)
2121

22-
from v3.config.settings import connection_config, orchestration_config
23-
from v3.models.models import MPlan
24-
from v3.orchestration.helper.plan_to_mplan_converter import PlanToMPlanConverter
22+
from af.config.settings import connection_config, orchestration_config
23+
from af.models.models import MPlan
24+
from af.orchestration.helper.plan_to_mplan_converter import PlanToMPlanConverter
2525

2626
logger = logging.getLogger(__name__)
2727

src/backend/af/orchestration/orchestration_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from typing import List, Optional, Callable, Awaitable
77

88
from common.config.app_config import config
9-
from common.models.messages_kernel import TeamConfiguration
9+
from common.models.messages_af import TeamConfiguration
1010

1111
# agent_framework imports
1212
from agent_framework import ChatMessage, Role, ChatOptions
@@ -184,7 +184,7 @@ async def get_current_or_new_orchestration(
184184
cls.logger.error("Error closing agent: %s", e)
185185

186186
# Build new participants via existing factory (still semantic-kernel path maybe; update separately if needed)
187-
from v3.magentic_agents.magentic_agent_factory import MagenticAgentFactory # local import to avoid circular
187+
from af.magentic_agents.magentic_agent_factory import MagenticAgentFactory # local import to avoid circular
188188

189189
factory = MagenticAgentFactory()
190190
agents = await factory.get_agents(user_id=user_id, team_config_input=team_config)

src/backend/common/database/cosmosdb.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import logging
55
from typing import Any, Dict, List, Optional, Type
66

7-
import v3.models.messages as messages
7+
import af.models.messages as messages
88
from azure.cosmos.aio import CosmosClient
99
from azure.cosmos.aio._database import DatabaseProxy
1010

11-
from ..models.messages_kernel import (
11+
from ..models.messages_af import (
1212
AgentMessage,
1313
AgentMessageData,
1414
BaseDataModel,

src/backend/common/database/database_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
from abc import ABC, abstractmethod
44
from typing import Any, Dict, List, Optional, Type
55

6-
import v3.models.messages as messages
6+
import af.models.messages as messages
77

8-
from ..models.messages_kernel import (
8+
from ..models.messages_af import (
99
AgentMessageData,
1010
BaseDataModel,
1111
Plan,

src/backend/common/models/messages_af.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,4 @@ class AgentMessageData(BaseDataModel):
255255
content: str
256256
raw_data: str
257257
steps: List[Any] = Field(default_factory=list)
258-
next_steps: List[Any] = Field(default_factory=list
258+
next_steps: List[Any] = Field(default_factory=list)

src/backend/common/models/messages_kernel.py

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)