Challenges with Data Update and Tool Invocation in Agentic flow. #3910
Unanswered
sanidhyabitcot
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
I’m facing a challenge with my agent setup.
Current Flow and Challenges
Current Flow
In the current flow, we have a single agent that utilizes two tools based on the query requirements:
Update_Employee_Details Tool
This tool is responsible for adding or updating data in the database(Postgres SQL).
Flow:
User Question → LLM Chain (SQL Query Generation) → Set Variable (
update_sqlQuery
) → Custom Function (Execute SQL) → Prompt Template (Format Response) → LLM Chain (Generate Final Response) → Chain Tool (Update_Employee_Details) → Conversational AgentFetch_Employee_Details Tool
This tool retrieves or fetches data from the database.
Flow:
User Question → LLM Chain (SQL Query Generation) → Set Variable (
fetch_sqlQuery
) → Custom Function (Execute SQL) → Prompt Template (Format Response) → LLM Chain (Generate Final Response) → Chain Tool (Fetch_Employee_Details) → Conversational AgentChallenges
Issue with Data Update Queries
Unexpected Tool Invocation
Update_Employee_Details
tool should be triggered in such cases.Challenges with Sequential Data Addition
Prompt Modification Impacts
Request for Assistance
Could anyone help me understand how to avoid this recursive behavior and improve the flow logic to ensure agents only communicate as needed?
Any suggestions or insights would be greatly appreciated.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions