pub struct TelemetryOptions {
pub enabled: bool,
pub record_inputs: bool,
pub record_outputs: bool,
pub function_id: Option<String>,
pub metadata: BTreeMap<String, JsonValue>,
pub include_runtime_context: bool,
pub include_tools_context: bool,
pub integrations: Vec<Arc<dyn Telemetry>>,
}Expand description
Telemetry configuration of a call.
Fields§
§enabled: boolWhether telemetry callbacks fire at all.
record_inputs: boolWhether prompts, call options and tool inputs are included in events.
record_outputs: boolWhether generated content and tool outputs are included in events.
function_id: Option<String>Identifier of the calling function for grouping.
metadata: BTreeMap<String, JsonValue>Free-form metadata attached to the start event.
include_runtime_context: boolWhether application runtime context is included in telemetry events and steps.
include_tools_context: boolWhether the tools context is attached to tool events.
integrations: Vec<Arc<dyn Telemetry>>Integrations that receive the events.
Implementations§
Trait Implementations§
Source§impl Clone for TelemetryOptions
impl Clone for TelemetryOptions
Source§fn clone(&self) -> TelemetryOptions
fn clone(&self) -> TelemetryOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TelemetryOptions
impl Debug for TelemetryOptions
Source§impl Default for TelemetryOptions
impl Default for TelemetryOptions
Source§fn default() -> TelemetryOptions
fn default() -> TelemetryOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for TelemetryOptions
impl !UnwindSafe for TelemetryOptions
impl Freeze for TelemetryOptions
impl Send for TelemetryOptions
impl Sync for TelemetryOptions
impl Unpin for TelemetryOptions
impl UnsafeUnpin for TelemetryOptions
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