@Apple Designer, given onToolCall's behavior to propagate any error thrown to the respond/response, one can't utilize it for stopping individual tool calls without ending the current turn's loop entirely.
I think that to achieve a fine-grained behavior one still needs to resort to Tool conformance (wrapping or extending existing Tools) to have the tool respond with the non-fatal failure/feedback for the model to continue, right?
I may still be missing a handy alternative to do this, and there can be reasons to not want to give it first class support, but filed a suggestion (FB23092325) just in case it is useful.
Topic:
Foundation Models
SubTopic:
Foundation Models Q&A