Plan: I will greet the user and ask for their name and location, then tailor my response accordingly.
Action: ```json
[
{
"tool_name": "directly_answer",
"parameters": {}
}
]
Relevant Documents: None
Cited Documents: None
Answer: Hi! It's lovely to hear from you. What's your name, and are you based in Australia or New Zealand?
Grounded answer: Hi! It's lovely to hear from you. What's your name, and are you based in Australia or New Zealand?
It works fine whenever i used invoke with agent executor, but whenever i moved for streaming and using astream_events i got extra data along with the response. I'd like to get only Hi! It's lovely to hear from you. What's your name, and are you based in Australia or New Zealand? as response.
Hello! We're a group of students from the University of Toronto Scarborough, and we're excited to contribute to LangChain. We'd love the opportunity to investigate this bug further.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Following is the response message:
Following is the event logs (sample):
Description
I using Langchain and Cohere.
It works fine whenever i used invoke with agent executor, but whenever i moved for streaming and using astream_events i got extra data along with the response. I'd like to get only Hi! It's lovely to hear from you. What's your name, and are you based in Australia or New Zealand? as response.
System Info
Django==5.1 cohere==5.11.0 uuid st-supabase-connection==1.2.0 requests==2.31.0 langchain==0.3.1 langchain-cohere==0.3.0 langchain-experimental==0.3.2 faiss-cpu sentence_transformers supabase==2.6.0 supafunc==0.5.1 python-dotenv==1.0.1 authlib==1.2.1 django-cors-headers==4.4.0 python-docx==1.1.2 uvicorn
OS Linux / Ubuntu