VoiceMailToolResponse
This is the Tool
response that is expected from the server to the message.
Properties
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-failed
message fromtool.messages
, if it exists - a response generated by the model, if neither exist
This is the result if the tool call was 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-complete
- a
request-complete
message fromtool.messages
, if it exists - a response generated by the model, if neither exist
Functions
This message is triggered when the tool call is complete and will be spoken to the user.
This message is triggered immediately without waiting for your server to respond for async tool calls.
If this message is not provided, the model will be requested to respond.
If this message is provided, only this message will be spoken and the model will not be requested to come up with a response. It's an exclusive OR.
This message is triggered when the tool call fails and will be spoken to the user.
This message is never triggered for async tool calls.
If this message is not provided, the model will be requested to respond.
If this message is provided, only this message will be spoken and the model will not be requested to come up with a response. It's an exclusive OR.