pub enum AgentToolMode {
Sync,
Streaming,
Conversational {
max_turns: u32,
max_tokens_per_turn: Option<u32>,
},
}Expand description
Invocation mode for an agent tool call.
Variants§
Sync
Single request/response (default).
Streaming
Streamed output with support for early termination.
Conversational
Multi-turn conversational exchange.
Trait Implementations§
Source§impl Clone for AgentToolMode
impl Clone for AgentToolMode
Source§fn clone(&self) -> AgentToolMode
fn clone(&self) -> AgentToolMode
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 AgentToolMode
impl Debug for AgentToolMode
Source§impl Default for AgentToolMode
impl Default for AgentToolMode
Source§fn default() -> AgentToolMode
fn default() -> AgentToolMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AgentToolMode
impl<'de> Deserialize<'de> for AgentToolMode
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
Auto Trait Implementations§
impl Freeze for AgentToolMode
impl RefUnwindSafe for AgentToolMode
impl Send for AgentToolMode
impl Sync for AgentToolMode
impl Unpin for AgentToolMode
impl UnsafeUnpin for AgentToolMode
impl UnwindSafe for AgentToolMode
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