Ai Agent, can't handle multiple item returns

I asked: “Order transactions using extract_date column and give me the last two”

the tool answer a json with two transactions:

and i get:
“”“The database still shows only 1 transaction total:
Transaction 1 (Most Recent): ….
“””

Does this can be fix in system message ? or how?

Hi @cristobal_rencoret, please can you share your workflow in a code block so we can have a look at your current system prompt and tools you’re using. I would recommend you using an output parser if you want your agent to purely respond with json data.

Then, to address your issue directly, I have a question. Are you saying that there are two records expected, but the agent only returns one?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.