Skip to content

Commit a5ca5dd

Browse files
Latest_fixes
1 parent 5161c69 commit a5ca5dd

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/backend/app_kernel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ async def input_task_endpoint(input_task: InputTask, request: Request):
156156
user_id=user_id,
157157
memory_store=memory_store,
158158
client=client,
159-
user_locale=user_locale, # ✅ Add this
159+
user_locale=user_locale,
160160
)
161161

162162
group_chat_manager = agents[AgentType.GROUP_CHAT_MANAGER.value]
@@ -300,7 +300,7 @@ async def human_feedback_endpoint(human_feedback: HumanFeedback, request: Reques
300300
user_id=user_id,
301301
memory_store=memory_store,
302302
client=client,
303-
user_locale=user_locale, # ✅ Add this
303+
user_locale=user_locale,
304304
)
305305

306306
if human_agent is None:
@@ -523,7 +523,7 @@ async def approve_step_endpoint(
523523
user_id=user_id,
524524
memory_store=memory_store,
525525
client=client,
526-
user_locale=user_locale, # ✅ Add this
526+
user_locale=user_locale,
527527
)
528528

529529
# Send the approval to the group chat manager

src/backend/kernel_agents/agent_factory.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async def create_all_agents(
197197
temperature: float = 0.0,
198198
memory_store: Optional[CosmosMemoryContext] = None,
199199
client: Optional[Any] = None,
200-
user_locale: str = "en_GB", # ✅ Add this
200+
user_locale: str = "en_GB",
201201
) -> Dict[AgentType, BaseAgent]:
202202
"""Create all agent types for a session in a specific order.
203203
@@ -297,8 +297,8 @@ async def create_all_agents(
297297
temperature=temperature,
298298
client=client,
299299
agent_instances=agent_instances, # Pass agent instances to the planner
300-
agent_tools_list=agent_tools_list, # ✅ Add this
301-
user_locale=user_locale, # ✅ Add this
300+
agent_tools_list=agent_tools_list,
301+
user_locale=user_locale,
302302
)
303303
agents[group_chat_manager_type] = group_chat_manager
304304

src/backend/kernel_agents/group_chat_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __init__(
7878
]
7979
self._agent_tools_list = agent_tools_list or []
8080
self._agent_instances = agent_instances or {}
81-
self._user_locale = kwargs.get("user_locale", "en_GB") # 👈 Add this
81+
self._user_locale = kwargs.get("user_locale", "en_GB")
8282

8383
# Create the Azure AI Agent for group chat operations
8484
# This will be initialized in async_init
@@ -454,6 +454,6 @@ def format_dates_in_action(action_text: str, locale: str) -> str:
454454
agent = self._agent_instances[step.agent.value]
455455
await agent.handle_action_request(
456456
action_request,
457-
user_locale=self._user_locale # 👈 Add this
457+
user_locale=self._user_locale
458458
) # this function is in base_agent.py
459459
logging.info(f"Sent ActionRequest to {step.agent.value}")

0 commit comments

Comments
 (0)