pub struct SessionRecorderConfig {
pub include_streaming_events: bool,
pub capture_turn_requests: bool,
pub before_task: Option<BeforeTaskFn>,
pub after_task: Option<AfterTaskFn>,
}Expand description
Configuration for SessionRecorder.
Fields§
§include_streaming_events: boolStore MessageUpdate (streaming delta) events in LoopRecord::events.
Default: false. Streaming deltas are 100–1 000× more numerous than
final messages and are not needed for replay or branching. Enable only
for debugging or playback use cases.
capture_turn_requests: boolCapture AnnotatedRequestPayload from AgentEvent::TurnRequest
onto each materialized Turn::request_payload.
Default: false. Each per-turn payload can be hundreds of KB (full
system prompt + message vec); enable only when reconstructing the
exact request the model received is required (debugging, golden-output
replay, cost analysis). The TurnRequest event is emitted regardless
of this flag — disabling it only suppresses persistence.
Added in phi-core 0.9.0.
before_task: Option<BeforeTaskFn>Session-level callback: fires when a new session is first created (G2).
after_task: Option<AfterTaskFn>Session-level callback: fires when a session is finalized (G2).
Trait Implementations§
Source§impl Clone for SessionRecorderConfig
impl Clone for SessionRecorderConfig
Source§fn clone(&self) -> SessionRecorderConfig
fn clone(&self) -> SessionRecorderConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more