Skip to main content

Crate trace_stream

Crate trace_stream 

Source
Expand description

plank’s model-token stream renderer, shared by the plank agent and the plank-console Turbo Vision monitor.

The pipeline is three layers, each usable on its own:

  • dsml — the strict parser for the DSML tool-call syntax the model was trained on.
  • vizviz::StreamRenderer, which splits a raw byte stream into visible text, thinking text, tool banners and error banners, driving a viz::RenderSink.
  • renderrender::TokenRenderer, the byte-at-a-time ANSI markdown and syntax-highlighting renderer (the ds4 C parity path).

Re-exports§

pub use sink::TerminalSink;

Modules§

dsml
Streaming DSML tool-call parser.
render
Assistant markdown rendering: streaming terminal renderer for model output.
sink
Routes crate::viz stream output into the markdown token renderer.
viz
Streaming tool-call visualization.