pub struct MockCall {
pub tool: Option<String>,
pub input: Option<Value>,
pub action: String,
pub rule: Option<usize>,
pub mock: Option<String>,
}Expand description
One observed tool call, as recorded by the mock/spy channel: the harness
hook’s spy log for real runs, or the provider’s mock_calls response for
the command protocol. Carries the original, pre-rewrite input — the
transcript’s events show post-rewrite reality (the stub that actually
ran); this shows what the skill attempted.
Fields§
§tool: Option<String>Tool name as the harness reported it; null when the event named none.
input: Option<Value>The tool’s original input arguments; null when the event carried none.
action: StringThe verdict applied: allow (fell through every rule), deny,
rewrite, or stub.
rule: Option<usize>Index of the compiled rule that intercepted; null for allow.
mock: Option<String>Name of the mock declaration the intercepting rule came from; null
for allow. Filled by the runner, so SDKs bind records to mock objects
by name instead of re-deriving rule indices.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MockCall
impl<'de> Deserialize<'de> for MockCall
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for MockCall
impl JsonSchema for MockCall
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more