pub struct ToolMessageDelayed {
pub contents: Option<Vec<ToolMessageStartContentsInner>>,
pub type: TypeTrue,
pub timing_milliseconds: Option<f64>,
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 is delayed. There are the two things that can trigger this message: 1. The user talks with the assistant while your server is processing the request. Default is "Sorry, a few more seconds." 2. The server doesn’t respond within timingMilliseconds
. This message is never triggered for async tool calls.
timing_milliseconds: Option<f64>
The number of milliseconds to wait for the server response before saying this message.
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 ToolMessageDelayed
impl ToolMessageDelayed
pub fn new(type: TypeTrue) -> ToolMessageDelayed
Trait Implementations§
Source§impl Clone for ToolMessageDelayed
impl Clone for ToolMessageDelayed
Source§fn clone(&self) -> ToolMessageDelayed
fn clone(&self) -> ToolMessageDelayed
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more