How can you call variable like this in AIP logic?

Hi,

I am studying about Build with AIP example “Leverage feedback loops in AIP Logic”

However, there is something I’ve never seen and how to do it.

In the picture above, relaventInstructions variable is called by its whole object sets.

but if I call the variable, I can only call properties and formatted variable.

if there anyone who knows how to call the whole object set variables??

Regards,

Hey,

When you pass in an “object set” to an LLM of your choice via the Use LLM block, it’s not sure what to do with it unless you “parse” out the most useful info.

Before (or above) your Use LLM block, you might want to add the Print object set as formatted string block. It acts like a for-loop/string accumulator and you can specify which property (or properties) to extract from each object in the object set variable you pass in.

You can rename that new block to something more intuitive (e.g., "Actual Feedback (string)) and then pass that new block/variable into the Use LLM block.

I will note that in your last screenshot there appears to be a second variable called “Retrieve Applicable Feedback - formatted (2)”. That seems to follow the naming convention for the Print object set as formatted string block, so AIP Logic may have added the block for you automatically.

Hope this helps!

1 Like

Hi, Josh!

Thank you for the reply!

Yes, I was parsing properties of object sets to deliver them to LLM block.

However, in the first picture of the post,

There is a way to send the entire object sets not formatted properties,

But I dont know how to do it like it, / button doesnt work…

Literally I pressed every buttons on the keyboard but still doesn’t work.

I took the picture from the Build with AIP example, but they didnt mention how to add variable like that

Maybe it is just hard coded for the Build with AIP example? :smiling_face_with_tear:

Please check the variable with gear icon in the first pictue :slight_smile: