pub struct ToolMessageFailed {
pub contents: Option<Vec<ToolMessageStartContentsInner>>,
pub type: TypeTrue,
pub end_call_after_spoken_enabled: Option<bool>,
pub content: Option<String>,
pub conditions: Option<Vec<Condition>>,
}
Fields§
§contents: Option<Vec<ToolMessageStartContentsInner>>
This is an alternative to the content
property. It allows to specify variants of the same content, one per language. Usage: - If your assistants are multilingual, you can provide content for each language. - If you don’t provide content for a language, the first item in the array will be automatically translated to the active language at that moment. This will override the content
property.
type: TypeTrue
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.
end_call_after_spoken_enabled: Option<bool>
This is an optional boolean that if true, the call will end after the message is spoken. Default is false. @default false
content: Option<String>
This is the content that the assistant says when this message is triggered.
conditions: Option<Vec<Condition>>
This is an optional array of conditions that the tool call arguments must meet in order for this message to be triggered.
Implementations§
Source§impl ToolMessageFailed
impl ToolMessageFailed
pub fn new(type: TypeTrue) -> ToolMessageFailed
Trait Implementations§
Source§impl Clone for ToolMessageFailed
impl Clone for ToolMessageFailed
Source§fn clone(&self) -> ToolMessageFailed
fn clone(&self) -> ToolMessageFailed
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more