Replies: 3 comments 1 reply
-
🤖 It seems like the issue you're experiencing is related to the tool being invoked multiple times for a single query. To better assist you, I need a bit more information:
This additional information will help me understand the problem more clearly and provide a more accurate solution. This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
-
@rups20097 I had a similar issue with langchainjs. I think you need to create you prompt from messages as the tool needs to inject its response into the prompt as a message. prompt = ChatPromptTemplate.from_messages([
("system", "You are world class technical documentation writer."),
("user", "{input}")
]) Related issues in js version: |
Beta Was this translation helpful? Give feedback.
-
i got the similar problem |
Beta Was this translation helpful? Give feedback.
-
I am calling the agent to get the current date or news, and it's calling the "date" tool or "news" or "calculator" tool several times like > 10.
as of now I hard coded the return date string like as below in
get_realtime_data
, but even after this, it is getting called.In the debug console it is as below
How to resolve the issue? I am not sure this is due to any kind of parsing issue or else.
Beta Was this translation helpful? Give feedback.
All reactions