Skip to content

Commit e11ff90

Browse files
PylintIssue
1 parent 2a48a2e commit e11ff90

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/backend/kernel_agents/planner_agent.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,10 @@ async def create(
150150
AgentType.TECH_SUPPORT.value,
151151
AgentType.GENERIC.value,
152152
]
153-
153+
154154
agents_list = available_agents or default_available_agents
155155
agents_str = ", ".join(agents_list)
156-
156+
157157
agent_tools_list = {
158158
AgentType.HR: HrTools.generate_tools_json_doc(),
159159
AgentType.MARKETING: MarketingTools.generate_tools_json_doc(),
@@ -162,7 +162,7 @@ async def create(
162162
AgentType.TECH_SUPPORT: TechSupportTools.generate_tools_json_doc(),
163163
AgentType.GENERIC: GenericTools.generate_tools_json_doc(),
164164
}
165-
165+
166166
tools_str = str(agent_tools_list)
167167

168168
# Create the Azure AI Agent using AppConfig with string instructions
@@ -419,12 +419,12 @@ async def _create_structured_plan(
419419
logging.warning("Planner returned no steps; falling back to default 2-step plan.")
420420
# Create default step data for roaming plan
421421
from models.messages_kernel import AgentType
422-
422+
423423
class DefaultStep:
424424
def __init__(self, action, agent):
425425
self.action = action
426426
self.agent = agent
427-
427+
428428
steps_data = [
429429
DefaultStep(
430430
action="Get information about available roaming packs and plans. Function: get_product_info",
@@ -435,7 +435,7 @@ def __init__(self, action, agent):
435435
agent=AgentType.PRODUCT.value
436436
)
437437
]
438-
438+
439439
# Update plan details for the default case
440440
if not initial_goal:
441441
initial_goal = "Enable roaming on mobile plan, starting next week."

src/backend/kernel_agents/product_agent.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,16 @@ def plugins(self):
130130

131131
# Explicitly inherit handle_action_request from the parent class
132132
# This is not technically necessary but makes the inheritance explicit
133-
async def handle_action_request(self, action_request_json: str) -> str:
133+
async def handle_action_request(self, action_request_json: str, **kwargs) -> str:
134134
"""Handle an action request from another agent or the system.
135135
136136
This method is inherited from BaseAgent but explicitly included here for clarity.
137137
138138
Args:
139139
action_request_json: The action request as a JSON string
140+
**kwargs: Additional keyword arguments (e.g., user_locale)
140141
141142
Returns:
142143
A JSON string containing the action response
143144
"""
144-
return await super().handle_action_request(action_request_json)
145+
return await super().handle_action_request(action_request_json, **kwargs)

0 commit comments

Comments
 (0)