Agent deleting other fields

I have an action that can edit any of a dozen optional fields. When I use AIP Agent Studio and ask the agent to use the action to change the value of one these fields to a new value, the other fields get deleted because the action isn’t preserving their previous values. I have tried and failed to reliably solve this with better prompting (i.e. change this and keep all other values unchanged). The only solution I’ve found is to use a dozen very narrow actions, but it’s creating a mess as the project is growing.

Is it possible for the agent to default-keep the previous values for the other properties when it runs an action?

Hi Joel,

Could you maybe try to make a function-backed-action? The function could handle making sure it retained all the properties that shouldn’t be touched, and you would have programmatic control over how the function works so that your action is called correctly.

We don’t have native support for keeping previous values of an object within an action, but I think this function backed approach would be even better since you could define even more complex behavior if you wanted.