pub enum FunctionBehavior {
Blocking,
NonBlocking,
}Expand description
BLOCKING (the default): the reply waits for the result. NON_BLOCKING, in chat rooms: the
reply goes on without it. Send the result whenever it’s ready (ChatRoom::send_tool_result,
from any of your devices, even after the reply ended); it lands in the chat as the same
invocation, finished, and starts a new reply. Stateless generation refuses it.
Variants§
Trait Implementations§
Source§impl Clone for FunctionBehavior
impl Clone for FunctionBehavior
impl Copy for FunctionBehavior
Source§impl Debug for FunctionBehavior
impl Debug for FunctionBehavior
Source§impl<'de> Deserialize<'de> for FunctionBehavior
impl<'de> Deserialize<'de> for FunctionBehavior
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
impl Eq for FunctionBehavior
Source§impl PartialEq for FunctionBehavior
impl PartialEq for FunctionBehavior
Source§impl Serialize for FunctionBehavior
impl Serialize for FunctionBehavior
impl StructuralPartialEq for FunctionBehavior
Auto Trait Implementations§
impl Forget for FunctionBehavior
impl Freeze for FunctionBehavior
impl Move for FunctionBehavior
impl RefUnwindSafe for FunctionBehavior
impl Send for FunctionBehavior
impl Sync for FunctionBehavior
impl Unpin for FunctionBehavior
impl UnsafeUnpin for FunctionBehavior
impl UnwindSafe for FunctionBehavior
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.