Skip to content

Commit

Permalink
fix: correcting tool_call role (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
zndqs authored Mar 3, 2025
1 parent 1077862 commit 34a3913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smolagents/memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def to_messages(self, summary_mode: bool = False, show_model_input_messages: boo
if self.tool_calls is not None:
messages.append(
Message(
role=MessageRole.ASSISTANT,
role=MessageRole.TOOL_CALL,
content=[
{
"type": "text",
Expand Down

0 comments on commit 34a3913

Please sign in to comment.