Skip to content

Commit

Permalink
fix openai tool calling object's serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
elisalimli committed Apr 30, 2024
1 parent a7527d7 commit 6cefeb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/superagent/app/agents/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ async def ainvoke(self, input, *_, **kwargs):
self.memory.aadd_message(
message=BaseMessage(
type=MessageType.TOOL_CALL,
content=json.dumps(tool_call),
content=tool_call.json(),
)
)
for tool_call in tool_calls
Expand Down

0 comments on commit 6cefeb7

Please sign in to comment.