Can AI Functions work effectively with multiple inputs that it needs to iterate over?
I have a simple AI Function setup that's working. It extracts a couple of bits of info from the user message and returns them as arguments for my function. So far, so simple.
What I'm struggling to do (and this may not be possible) is to get it to perform well with multiple inputs.
Suppose my user message was this - a JSON-formatted array of user messages, and I wanted to extract the sentiment and categories for each one:
I'm struggling to sest up the
tools
> parameters
> properties
section such that it can report on each message in the input. I've tried something like:
Sometimes this sort of works and at other times it just gives nonsensical responses or breaks down. I've also tried asking it to give me an object of params per message, like so:
...but this rarely works out well. Is there a better way here?0 Replies