pub struct LogEntry {
pub id: String,
pub name: String,
pub run_type: String,
pub tags: Vec<String>,
pub metadata: HashMap<String, Value>,
pub start_time: String,
pub streamed_output_str: Vec<String>,
pub streamed_output: Vec<Value>,
pub inputs: Option<Value>,
pub final_output: Option<Value>,
pub end_time: Option<String>,
}Expand description
A single entry in the run log.
Fields§
§id: StringID of the sub-run.
name: StringName of the object being run.
run_type: StringType of the object being run, eg. prompt, chain, llm, etc.
List of tags for the run.
metadata: HashMap<String, Value>Key-value pairs of metadata for the run.
start_time: StringISO-8601 timestamp of when the run started.
streamed_output_str: Vec<String>List of LLM tokens streamed by this run, if applicable.
streamed_output: Vec<Value>List of output chunks streamed by this run, if available.
inputs: Option<Value>Inputs to this run. Not available currently via astream_log.
final_output: Option<Value>Final output of this run. Only available after the run has finished successfully.
end_time: Option<String>ISO-8601 timestamp of when the run ended. Only available after the run has finished.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogEntry
impl<'de> Deserialize<'de> for LogEntry
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 LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnwindSafe for LogEntry
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