Struct Call Record
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct CallRecord {
pub kind: CallKind,
pub name: String,
pub started_at: DateTime<Utc>,
pub ended_at: Option<DateTime<Utc>>,
pub metadata_snapshot: Option<MetadataEnvelope>,
pub output_tokens: Option<u32>,
pub prompt_tokens: Option<u32>,
pub total_tokens: Option<u32>,
pub model_name: Option<String>,
pub tool_call_count: Option<u32>,
pub annotated_request: Option<Arc<AnnotatedLlmRequest>>,
pub annotated_response: Option<Arc<AnnotatedLlmResponse>>,
}
Telemetry record for a single tool or LLM call.
Fields
kind: CallKind
Category of call represented by this record.
name: String
Logical tool or provider name.
started_at: DateTime<Utc>
Timestamp when the call began.
ended_at: Option<DateTime<Utc>>
Timestamp when the call finished, when known.
metadata_snapshot: Option<MetadataEnvelope>
Adaptive metadata snapshot associated with the call.
output_tokens: Option<u32>
Output token count reported by the provider, when available.
prompt_tokens: Option<u32>
Prompt token count reported by the provider, when available.
total_tokens: Option<u32>
Total token count reported by the provider, when available.
model_name: Option<String>
Normalized model name associated with the call, when available.
tool_call_count: Option<u32>
Number of tool calls issued by the provider, when available.
annotated_request: Option<Arc<AnnotatedLlmRequest>>
Annotated request captured for Adaptive Cache Governor (ACG) analysis, when available.
annotated_response: Option<Arc<AnnotatedLlmResponse>>
Annotated response captured for Adaptive Cache Governor (ACG) analysis, when available.
Trait Implementations
impl Clone for CallRecord
impl Clone for CallRecord
clone
fn clone(&self) -> CallRecord
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for CallRecord
impl Debug for CallRecord
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for CallRecord
impl<'de> Deserialize<'de> for CallRecord
deserialize
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Serialize for CallRecord
impl Serialize for CallRecord
serialize
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,