core[major]: AsyncCallbackManagerForToolRun no longer casts return object to string (#20374)

- **Description:** Stops `AsyncCallbackManagerForToolRun` from
converting the output to str
- **Issue:** #20372
- **Dependencies:** None
This commit is contained in:
adreo00
2024-05-13 13:09:12 -06:00
committed by GitHub
parent 25fbe356b4
commit 40aff1eacc

View File

@@ -1045,7 +1045,6 @@ class AsyncCallbackManagerForToolRun(AsyncParentRunManager, ToolManagerMixin):
Args:
output (Any): The output of the tool.
"""
output = str(output)
await ahandle_event(
self.handlers,
"on_tool_end",