pub struct RunEntry {
pub kind: String,
pub turn: usize,
pub value: Value,
}Expand description
Host record stored verbatim in serialized run state and excluded from provider requests. The driver reconstructs hook state from entries on resume.
Fields§
§kind: StringHook-chosen namespace (e.g. "approval", "retry_budget").
Unregistered and unvalidated: the kind string is the whole contract
and the collision boundary, so hooks should pick specific names.
turn: usizeModel-call index at append time: zero before the first call, then one-based.
Hosts may place timestamps in value.
value: ValueThe appended value, verbatim JSON. Value::Null marker entries are
legitimate.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunEntry
impl<'de> Deserialize<'de> for RunEntry
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 RunEntry
Auto Trait Implementations§
impl Freeze for RunEntry
impl RefUnwindSafe for RunEntry
impl Send for RunEntry
impl Sync for RunEntry
impl Unpin for RunEntry
impl UnsafeUnpin for RunEntry
impl UnwindSafe for RunEntry
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.