pub struct PreTurnContext {
pub prompt: String,
pub turn_number: u32,
}Expand description
Context passed to HookPoint::PreTurn hooks.
Fields§
§prompt: StringThe user prompt for this turn.
turn_number: u32The 1-based turn number.
Trait Implementations§
Source§impl Clone for PreTurnContext
impl Clone for PreTurnContext
Source§fn clone(&self) -> PreTurnContext
fn clone(&self) -> PreTurnContext
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 PreTurnContext
impl Debug for PreTurnContext
Source§impl<'de> Deserialize<'de> for PreTurnContext
impl<'de> Deserialize<'de> for PreTurnContext
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 PreTurnContext
impl RefUnwindSafe for PreTurnContext
impl Send for PreTurnContext
impl Sync for PreTurnContext
impl Unpin for PreTurnContext
impl UnsafeUnpin for PreTurnContext
impl UnwindSafe for PreTurnContext
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