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).
Subagent
A subagent result (subagent.run sync / subagent.await).
Think
A think child (think tool / context.compact).
Run
A run’s terminal state (workflow.run wait / workflow.wait).
Await
A CEL condition polled each tick (await).
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
standalone: boolThe task exists ONLY for this ask (no A2A caller/run owns it) — complete it when the answer lands.
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.
Trait Implementations§
Source§impl Clone for PendingKind
impl Clone for PendingKind
Source§fn clone(&self) -> PendingKind
fn clone(&self) -> PendingKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more