Skip to content

Commit 0679a9e

Browse files
authored
Merge pull request #149 from Fr4nc3/main
Update human_agent.py
2 parents 71ab877 + 9da7521 commit 0679a9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/backend/kernel_agents/human_agent.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,13 @@ async def handle_human_clarification(
180180
181181
Args:
182182
human_clarification: The HumanClarification object containing the session_id
183-
and clarification_text provided by the human user
183+
and human_clarification provided by the human user
184184
185185
Returns:
186186
Status message indicating success or failure of adding the clarification
187187
"""
188188
session_id = human_clarification.session_id
189-
clarification_text = human_clarification.clarification_text
189+
clarification_text = human_clarification.human_clarification
190190

191191
# Get the plan associated with this session
192192
plan = await self._memory_store.get_plan_by_session(session_id)
@@ -198,10 +198,10 @@ async def handle_human_clarification(
198198
await self._memory_store.update_plan(plan)
199199
await self._memory_store.add_item(
200200
AgentMessage(
201-
session_id=human_clarification.session_id,
201+
session_id=session_id,
202202
user_id=self._user_id,
203203
plan_id="",
204-
content=f"{human_clarification.human_clarification}",
204+
content=f"{clarification_text}",
205205
source=AgentType.HUMAN.value,
206206
step_id="",
207207
)

0 commit comments

Comments
 (0)