pub struct Runtime {
pub rollbacks: u32,
pub conversation: Option<Vec<Message>>,
pub conversation_goal: Option<String>,
pub pending_user_parts: Vec<UserPart>,
}Expand description
Facts the harness observed. Not opinions, and not reported by the worker.
Fields§
§rollbacks: u32§conversation: Option<Vec<Message>>The conversation so far, kept across prompts in an interactive session. None: each run starts
fresh (one-shot runs and dispatches). Some: the run continues it and stores it back.
conversation_goal: Option<String>The goal of the conversation’s first prompt; the system prompt is built from it for the whole conversation, so it stays identical and its cache holds.
pending_user_parts: Vec<UserPart>Extra parts (such as images) attached to the next user prompt only; never serialised.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Runtime
impl<'de> Deserialize<'de> for Runtime
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 StructuralPartialEq for Runtime
Auto Trait Implementations§
impl Forget for Runtime
impl Freeze for Runtimewhere
*const u8 is !null: Freeze,
PhantomData<Message>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<UserPart>: Freeze,
impl Move for Runtime
impl RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl UnsafeUnpin for Runtimewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Message>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<UserPart>: UnsafeUnpin,
impl UnwindSafe for Runtime
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