I have an app using the Agent Chat GUI component and an agent query to call my Agent. By default the agent query uses {{ componentname.agentInputs }} to call the agent and handover the input from the user. I would like to add other parameters as well. But everytime I add parameters like {{ url.searchparams.camapignID }} (one of my URL parameters) the object is automatically tansformed into a string. I also tried different possibilites to keep the object like using
{{ { ...PostGenerator.agentInputs, campaignId: url.searchParams.campaignId } }} or
Well, it works but only in a nasty way Instead of using the complete object from .agentInputs you “rebuild” the elements of the object yourself. Than you can add the parameters in “message”. Here ist the example:
But doing this means to add the parameters to the user’s message input, as the role “system” is not available. This is ok for public parameters and data but why can’t we just use the “system” value for “role” when calling an agent?
Welcome to the community, @Ruediger! Thanks for reaching out.
I'm glad to hear that you're building agents! The scenario you're describing is actually very similar to other feedback that we've received - as you can see here - but it sounds like you've already figured out the best workaround.
I'll update our internal tracking with some of the additional context that you've added here and give you an update as soon as I can!