File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
src/backend/kernel_agents Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 66
77# Import the new AppConfig instance
88from app_config import config
9- from azure .ai .agents .models import (ResponseFormatJsonSchema ,
10- ResponseFormatJsonSchemaType )
9+
1110from context .cosmos_memory_kernel import CosmosMemoryContext
1211from kernel_agents .agent_base import BaseAgent
1312from kernel_agents .generic_agent import GenericAgent
2221from kernel_agents .tech_support_agent import TechSupportAgent
2322from models .messages_kernel import AgentType , PlannerResponsePlan
2423# pylint:disable=E0611
25- from semantic_kernel .agents .azure_ai .azure_ai_agent import AzureAIAgent , AzureAIAgentThread
24+ from semantic_kernel .agents .azure_ai .azure_ai_agent import AzureAIAgent
2625
2726logger = logging .getLogger (__name__ )
2827
@@ -265,7 +264,7 @@ async def create_all_agents(
265264 temperature = temperature ,
266265 agent_instances = agent_instances , # Pass agent instances to the planner
267266 client = client ,
268- response_format = {
267+ response_format = {
269268 "type" : "json_schema" ,
270269 "json_schema" : {
271270 "name" : PlannerResponsePlan .__name__ ,
Original file line number Diff line number Diff line change 1919from semantic_kernel .functions import KernelFunction
2020from semantic_kernel .functions .kernel_arguments import KernelArguments
2121
22+
2223class PlannerAgent (BaseAgent ):
2324 """Planner agent implementation using Semantic Kernel.
2425
@@ -165,8 +166,6 @@ async def create(
165166 definition = agent_definition ,
166167 )
167168
168-
169-
170169 async def handle_input_task (self , input_task : InputTask ) -> str :
171170 """Handle the initial input task from the user.
172171
You can’t perform that action at this time.
0 commit comments