Skip to main content

PendingKind

Enum PendingKind 

Source
pub enum PendingKind {
    Timer {
        id: String,
    },
    Subagent {
        handle: String,
    },
    Think {
        child: NodeId,
    },
    Run {
        run: String,
        deadline_ms: u64,
    },
    Await {
        condition: String,
        deadline_ms: u64,
    },
    Human {
        task: String,
        question: String,
        deadline_ms: u64,
        standalone: bool,
        auto_fired: bool,
        schema: Option<Value>,
        addressee: Option<Addressee>,
    },
}

Variants§

§

Timer

A durable timer (sleep).

Fields

§

Subagent

A subagent result (subagent.run sync / subagent.await).

Fields

§handle: String
§

Think

A think child (think tool / context.compact).

Fields

§child: NodeId
§

Run

A run’s terminal state (workflow.run wait / workflow.wait).

Fields

§deadline_ms: u64
§

Await

A CEL condition polled each tick (await).

Fields

§condition: String
§deadline_ms: u64
§

Human

A human’s answer (ask_human / the human node): the A2A task task sits in input-required; a SendMessage carrying its taskId resolves this with the reply text. With no interface to answer on, task is a synthetic ask id (no A2A task exists).

Fields

§task: String
§question: String
§deadline_ms: u64
§standalone: bool

The task exists ONLY for this ask (no A2A caller/run owns it) — complete it when the answer lands.

§auto_fired: bool

The auto fallback judge is running (or already ran) for this ask.

§schema: Option<Value>

The answer’s declared shape (human.schema / ask_human.schema).

Carried on the pending ask so the reply can be validated against it when it lands. Forwarding the schema to clients only makes them render the right form; a gate that declares it wants {decision: "file"|"hold"} must also refuse “maybe later”, or the run proceeds on an answer it never asked for.

§addressee: Option<Addressee>

Who must answer (to:). None ⇒ whoever holds the task, which is the ordinary case. Enforced when the answer lands, for the same reason the schema is: a gate that names a decider and then accepts anyone records something that did not happen.

Trait Implementations§

Source§

impl Clone for PendingKind

Source§

fn clone(&self) -> PendingKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PendingKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more