Skip to main content

Module json_event_layer

Module json_event_layer 

Source
Expand description

JsonEventLayer: a crate::runtime_layer::RuntimeLayer that emits tool events via JsonEventSink.

Install this layer on the agent when --json is active. It is the canonical emitter for tool_call and tool_result events — JsonCliChannel intentionally no-ops its corresponding channel methods to avoid double-emission.

All tool arguments and outputs pass through crate::redact::scrub_content before emission so secrets (API keys, bearer tokens, passwords) are not written to the JSONL stream.

Structs§

JsonEventLayer
RuntimeLayer that forwards tool events to a JsonEventSink.