Skip to content

Commit

Permalink
Fix Q&A for gemini
Browse files Browse the repository at this point in the history
  • Loading branch information
roaga committed Feb 8, 2025
1 parent 7a94f30 commit 2c848af
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/seer/automation/autofix/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,14 @@ def restart_step_with_user_response(
cur_state = state.get()
if memory:
tool_call_id = memory[-1].tool_call_id
tool_call_function = memory[-1].tool_call_function
if tool_call_id:
user_response = Message(role="tool", content=text, tool_call_id=tool_call_id)
user_response = Message(
role="tool",
content=text,
tool_call_id=tool_call_id,
tool_call_function=tool_call_function,
)
if memory[-1].role == "tool":
memory[-1] = user_response
else:
Expand Down

0 comments on commit 2c848af

Please sign in to comment.