Multiple Output AIP Logic Function

I have an AIP logic function that takes 3 input parameters (strings) that filter an object set, perform an LLM task and outputs a struct. I want to collect the output for every unique combination of the 3 input parameters into an object so if a user requests the same input parameters I can re-use a previous struct response and don’t have call the LLM again.

How can I output a struct from the function and also collect a new object? It seems like AIP Logic only allows for one output.

Hey Aram (well more for anyone else who finds this thread), you can return multiple values by using the “Create struct” block and using that as the output of your logic function.

Create struct does (currently) have the limitation that the values must be ‘literals’, they can’t be objects or object sets (although they can be the primary key of an object, so not as limiting as it might seem at first)