Skip to content

Commit 9175df4

Browse files
committed
Update messages_kernel.py
1 parent 73f79c5 commit 9175df4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/backend/models/messages_kernel.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,18 @@ async def clear_history(self, session_id: str):
393393
# This assumes your memory store has a method to delete a collection
394394
await self.memory_store.delete_collection_async(f"message_{session_id}")
395395

396+
397+
# Define the expected structure of the LLM response
398+
class PlannerResponseStep(KernelBaseModel):
399+
action: str
400+
agent: AgentType
401+
402+
class PlannerResponsePlan(KernelBaseModel):
403+
initial_goal: str
404+
steps: List[PlannerResponseStep]
405+
summary_plan_and_steps: str
406+
human_clarification_request: Optional[str] = None
407+
396408
# Helper class for Semantic Kernel function calling
397409
class SKFunctionRegistry:
398410
"""Helper class to register and execute functions in Semantic Kernel."""

0 commit comments

Comments
 (0)