Skip to content

Commit 170e19c

Browse files
committed
Merge branch 'macae-v3-dev-marktayl' of https://github.com/microsoft/Multi-Agent-Custom-Automation-Engine-Solution-Accelerator into macae-v3-dev-marktayl
2 parents 1c51ae4 + 96dadc8 commit 170e19c

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

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)