Agent Builder - Is appending on Lists possible?

I would like to append a json structure on a list living in my state. Specifically I’m recreating a chat_history array. I need it because I’m trying to make agents talk to one another. I have a tester agent that acts as a user and a front desk agent that answer queries. I need them to talk to one another because I need multiple conversations for my evaluation for the front desk agent. Obviously I am trying not to do this manually.

I tried using while loops and if-else statements to make the agents talk to each other, but they don’t retain any memory of their previous exchanges with one another.

1 Like