Skip to content

Commit

Permalink
JSON serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
glide-the committed Jul 17, 2024
1 parent 5ac6485 commit 29efaea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions langchain_glm/callbacks/agent_callback_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async def on_tool_start(

async def on_tool_end(
self,
output: str,
output: Any,
*,
run_id: UUID,
parent_run_id: Optional[UUID] = None,
Expand All @@ -143,7 +143,7 @@ async def on_tool_end(
"run_id": str(run_id),
"status": AgentStatus.tool_end,
"tool": kwargs["name"],
"tool_output": output,
"tool_output": str(output),
}
self.queue.put_nowait(dumps(data))

Expand Down

0 comments on commit 29efaea

Please sign in to comment.