pub struct TelemetryHookConfig {
pub model: String,
pub conversation_id: String,
pub payload_truncate_bytes: usize,
}Expand description
Conversation identifier to stamp on emitted events when the agent runtime
does not surface one to the hook. The Rig PromptHook signature does not
currently propagate the conversation ID, so the hook stamps events with a
constant chosen by the caller (typically "default" for single-thread
agents, or a unique value per agent instance for multi-thread setups).
For per-request resolution see
TelemetryHook::with_conversation_id_resolver.
Fields§
§model: StringDefault model label (e.g. "gpt-4o") recorded on prompt.* events.
For routed providers, prefer TelemetryHook::with_model_resolver
to extract the model name from the actual response payload.
conversation_id: StringDefault conversation ID stamped on every emitted event when no
per-request resolver is registered or the resolver returns None.
payload_truncate_bytes: usizeMaximum byte length of inline args_json / result payloads before
truncation. Defaults to PAYLOAD_TRUNCATE_BYTES.
Implementations§
Trait Implementations§
Source§impl Clone for TelemetryHookConfig
impl Clone for TelemetryHookConfig
Source§fn clone(&self) -> TelemetryHookConfig
fn clone(&self) -> TelemetryHookConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more