Skip to main content

canonical_invocation_bytes

Function canonical_invocation_bytes 

Source
pub fn canonical_invocation_bytes(
    invocation: &ToolInvocation,
) -> Result<Vec<u8>>
Expand description

Stable canonical-JSON byte form of a ToolInvocation.

Adapters frequently need a stable hash of the invocation for telemetry and replay correlation. The kernel exposes its canonical-JSON helper already; this is a typed wrapper so callers do not import the helper directly. The wrapped helper returns the workspace’s own chio_core::error::Error; callers that already work in that error space can map straight through ?.