pub struct TracingHandler { /* private fields */ }Expand description
Bridges CallbackHandler events to one or more TraceExporters.
Implementations§
Source§impl TracingHandler
impl TracingHandler
Sourcepub fn builder() -> TracingHandlerBuilder
pub fn builder() -> TracingHandlerBuilder
Start a new builder.
Sourcepub fn record_score(&self, score: ScoreRecord)
pub fn record_score(&self, score: ScoreRecord)
Submit an out-of-band evaluation score for an existing run_id.
Trait Implementations§
Source§impl CallbackHandler for TracingHandler
impl CallbackHandler for TracingHandler
Source§fn on_chain_start(&self, runnable: &str, input: &Value, run_id: Uuid)
fn on_chain_start(&self, runnable: &str, input: &Value, run_id: Uuid)
A
Runnable (chain / graph) started.Source§fn on_chain_end(&self, _runnable: &str, output: &Value, run_id: Uuid)
fn on_chain_end(&self, _runnable: &str, output: &Value, run_id: Uuid)
A
Runnable finished successfully.Source§fn on_node_end(&self, _node: &str, _step: u64, output: &Value, run_id: Uuid)
fn on_node_end(&self, _node: &str, _step: u64, output: &Value, run_id: Uuid)
Graph node finished.
Source§fn on_checkpoint(&self, _step: u64, _run_id: Uuid)
fn on_checkpoint(&self, _step: u64, _run_id: Uuid)
Graph engine persisted a checkpoint.
Source§fn on_llm_start(&self, model: &str, prompt: &Value, run_id: Uuid)
fn on_llm_start(&self, model: &str, prompt: &Value, run_id: Uuid)
LLM / chat-model invocation started.
Source§fn on_llm_token(&self, _token: &str, _run_id: Uuid)
fn on_llm_token(&self, _token: &str, _run_id: Uuid)
LLM emitted a streamed token.
Auto Trait Implementations§
impl Freeze for TracingHandler
impl !RefUnwindSafe for TracingHandler
impl Send for TracingHandler
impl Sync for TracingHandler
impl Unpin for TracingHandler
impl UnsafeUnpin for TracingHandler
impl !UnwindSafe for TracingHandler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more