Skip to content

Commit a1e3855

Browse files
Agent_factory Updated
1 parent f413121 commit a1e3855

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/backend/kernel_agents/agent_factory.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,14 @@ async def create_all_agents(
265265
temperature=temperature,
266266
agent_instances=agent_instances, # Pass agent instances to the planner
267267
client=client,
268+
response_format = {
269+
"type": "json_schema",
270+
"json_schema": {
271+
"name": PlannerResponsePlan.__name__,
272+
"description": f"respond with {PlannerResponsePlan.__name__.lower()}",
273+
"schema": PlannerResponsePlan.model_json_schema()
274+
}
275+
},
268276
)
269277
agent_instances[AgentType.PLANNER.value] = (
270278
planner_agent # to pass it to group chat manager

0 commit comments

Comments
 (0)