pub struct LlmResponse {Show 14 fields
pub ts_ms: Option<i64>,
pub prompt_index: usize,
pub model: String,
pub source_id: String,
pub text_hash: String,
pub preview: String,
pub input_tokens: u64,
pub output_tokens: u64,
pub cache_tokens: u64,
pub total_tokens: u64,
pub tag: String,
pub response_phase: String,
pub skill: String,
pub task_path: Vec<String>,
}Fields§
§ts_ms: Option<i64>§prompt_index: usize§model: String§source_id: StringSource-native completion identity used to merge split JSONL records.
text_hash: String§preview: String§input_tokens: u64§output_tokens: u64§cache_tokens: u64§total_tokens: u64§tag: String§response_phase: StringSource-native response lifecycle when the agent records one explicitly.
Examples are commentary, final_answer, and assistant_message.
skill: StringExact source-recorded skill scope active when this response began.
task_path: Vec<String>Source-visible semantic responsibility path active at this response.
Implementations§
Source§impl LlmResponse
impl LlmResponse
pub fn token_components(&self) -> Vec<(&'static str, u64)>
Trait Implementations§
Source§impl Clone for LlmResponse
impl Clone for LlmResponse
Source§fn clone(&self) -> LlmResponse
fn clone(&self) -> LlmResponse
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 LlmResponse
impl Debug for LlmResponse
Source§impl<'de> Deserialize<'de> for LlmResponse
impl<'de> Deserialize<'de> for LlmResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LlmResponse
impl RefUnwindSafe for LlmResponse
impl Send for LlmResponse
impl Sync for LlmResponse
impl Unpin for LlmResponse
impl UnsafeUnpin for LlmResponse
impl UnwindSafe for LlmResponse
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