Skip to content

Commit

Permalink
Closes #5059 (#5156)
Browse files Browse the repository at this point in the history
Update _magentic_one_orchestrator.py

In a Magentic Group Settting, if one of the Assitant Agents uses a tool it gives the following error, note this is under a FALSE reflect_on_tool variable.

Making it true, wont happen, though more tokens will be consumed and it will have a worst output and the philosophy of a tool as an answer is not followed...
  • Loading branch information
fbpazos authored Jan 23, 2025
1 parent 3fe1066 commit a585091
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ def _thread_to_context(self) -> List[LLMMessage]:
assert isinstance(m, TextMessage | ToolCallSummaryMessage)
context.append(AssistantMessage(content=m.content, source=m.source))
else:
assert isinstance(m, TextMessage) or isinstance(m, MultiModalMessage)
assert isinstance(m, (TextMessage, MultiModalMessage, ToolCallSummaryMessage))
context.append(UserMessage(content=m.content, source=m.source))
return context

Expand Down

0 comments on commit a585091

Please sign in to comment.