pub struct HumanPending {
pub run_path: RunPath,
pub request_id: String,
pub purpose: HumanPurpose,
pub mode: Option<HumanMode>,
pub prompt: String,
pub deadline_at_ms: Option<u64>,
}Expand description
A pending human interaction (spine §6.6 + R13 purpose discriminator;
06 §8-Q4 adopted — mode/deadlineAtMs are carried so lazy timeout
settlement needs no event-stream re-read).
Fields§
§run_path: RunPathRun path of the awaiting step (or gated step for supervision).
request_id: StringThe request id the response must pair with.
purpose: HumanPurposeWhy the interaction exists (step vs supervision gate).
mode: Option<HumanMode>Interaction mode of a purpose="step" request; absent for
supervision gates (06 §2.1).
prompt: StringThe prompt shown to the human (auto-generated gate description for supervision requests).
deadline_at_ms: Option<u64>Absolute response deadline (ms since epoch); absent for supervision requests, which have no deadline (spine §6.9).
Trait Implementations§
Source§impl Clone for HumanPending
impl Clone for HumanPending
Source§fn clone(&self) -> HumanPending
fn clone(&self) -> HumanPending
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 HumanPending
impl Debug for HumanPending
Source§impl<'de> Deserialize<'de> for HumanPending
impl<'de> Deserialize<'de> for HumanPending
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
Source§impl JsonSchema for HumanPending
impl JsonSchema for HumanPending
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for HumanPending
impl PartialEq for HumanPending
Source§impl Serialize for HumanPending
impl Serialize for HumanPending
impl StructuralPartialEq for HumanPending
Auto Trait Implementations§
impl Freeze for HumanPending
impl RefUnwindSafe for HumanPending
impl Send for HumanPending
impl Sync for HumanPending
impl Unpin for HumanPending
impl UnsafeUnpin for HumanPending
impl UnwindSafe for HumanPending
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