pub enum ToolExecutionMode {
Sequential,
Parallel,
}Expand description
How a batch of tool calls from one assistant message are executed.
Sequential: each call is prepared, executed, finalized before the next starts.Parallel: calls are prepared sequentially, then allowed tools execute concurrently.tool_execution_endfires in completion order; tool-resultMessageEndfires later in assistant source order.
Variants§
Trait Implementations§
Source§impl Clone for ToolExecutionMode
impl Clone for ToolExecutionMode
Source§fn clone(&self) -> ToolExecutionMode
fn clone(&self) -> ToolExecutionMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ToolExecutionMode
Source§impl Debug for ToolExecutionMode
impl Debug for ToolExecutionMode
Source§impl Default for ToolExecutionMode
impl Default for ToolExecutionMode
Source§fn default() -> ToolExecutionMode
fn default() -> ToolExecutionMode
Returns the “default value” for a type. Read more
impl Eq for ToolExecutionMode
Source§impl PartialEq for ToolExecutionMode
impl PartialEq for ToolExecutionMode
impl StructuralPartialEq for ToolExecutionMode
Auto Trait Implementations§
impl Freeze for ToolExecutionMode
impl RefUnwindSafe for ToolExecutionMode
impl Send for ToolExecutionMode
impl Sync for ToolExecutionMode
impl Unpin for ToolExecutionMode
impl UnsafeUnpin for ToolExecutionMode
impl UnwindSafe for ToolExecutionMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.