pub enum TurnStop {
Cancelled,
Incomplete,
InvalidInput,
MaxTurns,
ToolFailure,
ProviderError,
PluginAbort,
RuntimeError,
SubmittedError {
value: Value,
},
ToolError {
tool_name: String,
value: Value,
},
}Variants§
Cancelled
Incomplete
InvalidInput
MaxTurns
ToolFailure
ProviderError
PluginAbort
RuntimeError
SubmittedError
ToolError
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TurnStop
impl<'de> Deserialize<'de> for TurnStop
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TurnStop, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TurnStop, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TurnStop
impl Serialize for TurnStop
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TurnStop
Auto Trait Implementations§
impl Freeze for TurnStop
impl RefUnwindSafe for TurnStop
impl Send for TurnStop
impl Sync for TurnStop
impl Unpin for TurnStop
impl UnsafeUnpin for TurnStop
impl UnwindSafe for TurnStop
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