Skip to main content

Module provider_verdict

Module provider_verdict 

Source
Expand description

Provider-fabric verdict shim.

Wires the provider-agnostic chio_tool_call_fabric crate into the kernel via a thin conversion layer. Lifts a ToolInvocation into a kernel ToolCallRequest (when paired with the surrounding capability context) and lowers a kernel ToolCallResponse into a fabric VerdictResult. The shim is a single conversion point so the fabric vocabulary never leaks into the kernel’s internals.

Enums§

ProviderVerdictError
Errors surfaced when adapting fabric types into the kernel’s MCP path.

Constants§

FABRIC_SHIM_PROVIDER_LANES
Marker constant tying the shim to the fabric crate version it was built against. Used by the workspace’s drift checks to flag when the fabric trait surface evolves without the kernel shim being revisited.

Functions§

build_tool_call_request
Build a ToolCallRequest from a fabric ToolInvocation plus the surrounding kernel context (capability token, calling agent, target tool server). All policy decisions remain with evaluate_tool_call*; this helper only translates the wire shape.
canonical_invocation_bytes
Stable canonical-JSON byte form of a ToolInvocation.
verdict_result_from_response
Lower a kernel ToolCallResponse into a fabric VerdictResult.