Skip to main content

KernelResponse

Type Alias KernelResponse 

Source
pub type KernelResponse = ToolCallResponse;
Expand description

Response produced by KernelService.

Aliased Type§

pub struct KernelResponse {
    pub request_id: String,
    pub verdict: Verdict,
    pub output: Option<ToolCallOutput>,
    pub reason: Option<String>,
    pub terminal_state: OperationTerminalState,
    pub receipt: ChioReceipt,
    pub execution_nonce: Option<Box<SignedExecutionNonce>>,
}

Fields§

§request_id: String

Correlation identifier (matches the request).

§verdict: Verdict

The kernel’s verdict.

§output: Option<ToolCallOutput>

The tool’s output payload, which may be a direct value or a stream.

§reason: Option<String>

Denial reason (populated when verdict is Deny).

§terminal_state: OperationTerminalState

Explicit terminal lifecycle state for this request.

§receipt: ChioReceipt

Signed receipt attesting to this decision.

§execution_nonce: Option<Box<SignedExecutionNonce>>

Short-lived, single-use execution nonce bound to this allow verdict. Populated only on Verdict::Allow when an ExecutionNonceConfig is installed on the kernel. Deployments without a config leave this None and keep working.

Boxed so the deny/cancel/incomplete hot paths (which all carry None) don’t widen the SessionOperationResponse::ToolCall variant and trip clippy’s large_enum_variant.