ToolMessageFailed

interface ToolMessageFailed : ToolMessageFailedProperties

This message is triggered when the tool call fails.
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.

Properties

Link copied to clipboard
abstract var content: String

This is the content that the assistant says when this message is triggered.

Link copied to clipboard
abstract var endCallAfterSpokenEnabled: Boolean?

This is an optional boolean that if true, the call will end after the message is spoken. Default is false.