OnParsingFailure = Literal['error', 'none', 'all'] | list[str] | Callable[[Any], list[strBehavior when the selection model keeps returning a malformed response.
Can be either:
'error': Raise a ValueError (the default).'none': Select no tools.'all': Select every available tool.list[str] of tool names to fall back to.