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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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",