pub enum ToolExecutionStrategy {
Sequential,
BoundedConcurrent {
max_in_flight: usize,
},
OrderedBatch {
max_in_flight: usize,
},
}Expand description
Enumerates the finite tool execution strategy cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Sequential
Use this variant when the contract needs to represent sequential; selecting it has no side effect by itself.
BoundedConcurrent
Use this variant when the contract needs to represent bounded concurrent; selecting it has no side effect by itself.
OrderedBatch
Use this variant when the contract needs to represent ordered batch; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for ToolExecutionStrategy
impl Clone for ToolExecutionStrategy
Source§fn clone(&self) -> ToolExecutionStrategy
fn clone(&self) -> ToolExecutionStrategy
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 moreSource§impl Debug for ToolExecutionStrategy
impl Debug for ToolExecutionStrategy
Source§impl Default for ToolExecutionStrategy
impl Default for ToolExecutionStrategy
Source§fn default() -> ToolExecutionStrategy
fn default() -> ToolExecutionStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolExecutionStrategy
impl<'de> Deserialize<'de> for ToolExecutionStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolExecutionStrategy
impl PartialEq for ToolExecutionStrategy
Source§fn eq(&self, other: &ToolExecutionStrategy) -> bool
fn eq(&self, other: &ToolExecutionStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolExecutionStrategy
impl Serialize for ToolExecutionStrategy
impl Eq for ToolExecutionStrategy
impl StructuralPartialEq for ToolExecutionStrategy
Auto Trait Implementations§
impl Freeze for ToolExecutionStrategy
impl RefUnwindSafe for ToolExecutionStrategy
impl Send for ToolExecutionStrategy
impl Sync for ToolExecutionStrategy
impl Unpin for ToolExecutionStrategy
impl UnsafeUnpin for ToolExecutionStrategy
impl UnwindSafe for ToolExecutionStrategy
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