mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-16 09:34:30 -04:00
include_callback_events failed on AgentExecutor #97
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rever1and on GitHub (Jan 22, 2024).
I just find there are validation errors when I use AgentExecutor as the runnable.
I propose to add the the validation model for AgentStart and AgentFinish.
@eyurtsev commented on GitHub (Jan 25, 2024):
Could you include a traceback? I haven't really advertised the callback API since it still has rough edges -- I'm 100% it doesn't handle all serialization cases.
This won't be prioritize for a while.
What are you using the callbacks for? We're likely going to expose the
astream_eventsAPI first in LangServe to help stream agent responses@rever1and commented on GitHub (Jan 25, 2024):
Thanks for reply.
I'm trying to find a way to implement something like https://github.com/langchain-ai/streamlit-agent/blob/main/streamlit_agent/mrkl_demo.py. on the way, tried the callbacks
I'll try to next time if you prefer that.
Any instruction to provide a traceback safely? I worried that it may leak something sensitive for me.
It ok for me.
@eyurtsev commented on GitHub (Feb 1, 2024):
Scan the traceback to see if there's any personal information there and wipe it out (usually it's just the user name on your machine).
Except for that there is usually no sensitive information in tracebacks
@eyurtsev commented on GitHub (Feb 1, 2024):
@rever1and try the astream events API now
See
https://python.langchain.com/docs/modules/agents/how_to/streaming#custom-streaming-with-events