pub enum HarnessStop {
EndTurn,
MaxTokens,
MaxTurnRequests,
Refusal,
Cancelled,
}Expand description
Why a harness stopped answering the city’s prompt.
Variants§
EndTurn
The harness finished its turn.
MaxTokens
The model ran out of output tokens.
MaxTurnRequests
The harness reached its limit of model requests for one turn.
Refusal
The model refused.
Cancelled
The city cancelled the turn.
Trait Implementations§
Source§impl Clone for HarnessStop
impl Clone for HarnessStop
impl Copy for HarnessStop
Source§impl Debug for HarnessStop
impl Debug for HarnessStop
Source§impl<'de> Deserialize<'de> for HarnessStop
impl<'de> Deserialize<'de> for HarnessStop
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 HarnessStop
Source§impl PartialEq for HarnessStop
impl PartialEq for HarnessStop
Source§impl Serialize for HarnessStop
impl Serialize for HarnessStop
impl StructuralPartialEq for HarnessStop
Auto Trait Implementations§
impl Freeze for HarnessStop
impl RefUnwindSafe for HarnessStop
impl Send for HarnessStop
impl Sync for HarnessStop
impl Unpin for HarnessStop
impl UnsafeUnpin for HarnessStop
impl UnwindSafe for HarnessStop
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