pub struct RunState {
pub id: String,
pub streamed_output: Vec<Value>,
pub final_output: Option<Value>,
pub name: String,
pub run_type: String,
pub logs: HashMap<String, LogEntry>,
}Expand description
State of the run.
Fields§
§id: StringID of the run.
streamed_output: Vec<Value>List of output chunks streamed by Runnable.stream()
final_output: Option<Value>Final output of the run, usually the result of aggregating streamed_output.
name: StringName of the object being run.
run_type: StringType of the object being run, eg. prompt, chain, llm, etc.
logs: HashMap<String, LogEntry>Map of run names to sub-runs.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunState
impl<'de> Deserialize<'de> for RunState
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 RunState
impl RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl UnwindSafe for RunState
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