Skip to content

Commit 96dadc8

Browse files
committed
Remove unused agent team JSON files and refactor imports
Deleted obsolete agent team configuration files from the data directory. Refactored import statements in messages.py and human_approval_manager.py to improve code clarity and avoid redundant imports.
1 parent bb466d4 commit 96dadc8

File tree

4 files changed

+5
-212
lines changed

4 files changed

+5
-212
lines changed

data/agent_teams/default_team - Copy.json

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

data/agent_teams/retail - Copy.json

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

src/backend/v3/models/messages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from dataclasses import asdict, dataclass, field
55
from enum import Enum
66
from typing import Any, Dict, List, Literal, Optional
7-
7+
import time
88
from semantic_kernel.kernel_pydantic import Field, KernelBaseModel
99
from v3.models.models import MPlan, PlanStatus
1010

@@ -114,7 +114,7 @@ class FinalResultMessage:
114114

115115
def to_dict(self) -> Dict[str, Any]:
116116
"""Convert the FinalResultMessage to a dictionary for JSON serialization."""
117-
import time
117+
118118
data = {
119119
"content": self.content,
120120
"status": self.status,

src/backend/v3/orchestration/human_approval_manager.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
import asyncio
77
import re
88
from typing import Any, List, Optional
9-
9+
# Create a progress ledger that indicates the request is satisfied (task complete)
10+
from semantic_kernel.agents.orchestration.magentic import (
11+
ProgressLedger, ProgressLedgerItem)
1012
import v3.models.messages as messages
1113
from semantic_kernel.agents import Agent
1214
from semantic_kernel.agents.orchestration.magentic import (
@@ -148,9 +150,6 @@ async def create_progress_ledger(self, magentic_context: MagenticContext) -> Pro
148150
user_id=current_user_id.get(),
149151
message_type=messages.WebsocketMessageType.FINAL_RESULT_MESSAGE)
150152

151-
# Create a progress ledger that indicates the request is satisfied (task complete)
152-
from semantic_kernel.agents.orchestration.magentic import (
153-
ProgressLedger, ProgressLedgerItem)
154153
return ProgressLedger(
155154
is_request_satisfied=ProgressLedgerItem(reason="Maximum rounds exceeded", answer=True),
156155
is_in_loop=ProgressLedgerItem(reason="Terminating", answer=False),

0 commit comments

Comments
 (0)