error
This is the error if the tool call was not successful. This is added to the conversation history.
Further, if this is returned, assistant will speak:
- the message, if it exists and is of typerequest-failed
- a request-failedmessage fromtool.messages, if it exists
- a response generated by the model, if neither exist