Skip to main content

DraftEvent

Type Alias DraftEvent 

pub type DraftEvent = StreamDelta;
Expand description

Backwards-compatible alias while callers are migrated.

Aliased Type§

pub enum DraftEvent {
    Text(String),
    Status(String),
    ToolStart {
        tool: String,
        arguments: Arc<Value>,
        tool_provenance: Option<ToolProvenance>,
    },
    ToolComplete {
        tool: String,
        arguments: Arc<Value>,
        tool_provenance: Option<ToolProvenance>,
        secs: u64,
        success: bool,
        error: Option<String>,
    },
    Reasoning(String),
    Lifecycle(ProgressEvent),
}

Variants§

§

Text(String)

Response text to append to the message buffer.

§

Status(String)

Ephemeral tool progress (not part of the response body).

§

ToolStart

A pending tool call. Channel draft consumers decide how to render its arguments; the runtime keeps this event structured to avoid coupling a transport-specific disclosure policy into the agent loop.

Fields

§tool: String
§arguments: Arc<Value>
§tool_provenance: Option<ToolProvenance>

Canonical trust origin carried from the resolved static or activated tool. None means the name did not resolve in either registry.

§

ToolComplete

A completed tool call paired with its original arguments.

Fields

§tool: String
§arguments: Arc<Value>
§tool_provenance: Option<ToolProvenance>

The same trust origin observed when the matching start event was emitted; consumers must treat None as untrusted.

§secs: u64
§success: bool
§

Reasoning(String)

Provider reasoning text. Channel surfaces must opt in before rendering.

§

Lifecycle(ProgressEvent)

Typed, non-sensitive agent lifecycle progress.