pub struct AgentStreamResult {
pub result: AgentResult,
pub events: Vec<AgentStreamRecord>,
}Expand description
Result returned by collection-based stream runs.
Fields§
§result: AgentResultFinal agent result.
events: Vec<AgentStreamRecord>Events captured while the run progressed.
Implementations§
Source§impl AgentStreamResult
impl AgentStreamResult
Sourcepub fn events(&self) -> &[AgentStreamRecord]
pub fn events(&self) -> &[AgentStreamRecord]
Return captured stream records.
Sourcepub const fn result(&self) -> &AgentResult
pub const fn result(&self) -> &AgentResult
Return the final result.
Trait Implementations§
Source§impl Clone for AgentStreamResult
impl Clone for AgentStreamResult
Source§fn clone(&self) -> AgentStreamResult
fn clone(&self) -> AgentStreamResult
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 AgentStreamResult
impl Debug for AgentStreamResult
Source§impl<'de> Deserialize<'de> for AgentStreamResult
impl<'de> Deserialize<'de> for AgentStreamResult
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
impl Eq for AgentStreamResult
Source§impl PartialEq for AgentStreamResult
impl PartialEq for AgentStreamResult
Source§fn eq(&self, other: &AgentStreamResult) -> bool
fn eq(&self, other: &AgentStreamResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AgentStreamResult
impl Serialize for AgentStreamResult
impl StructuralPartialEq for AgentStreamResult
Auto Trait Implementations§
impl Freeze for AgentStreamResult
impl RefUnwindSafe for AgentStreamResult
impl Send for AgentStreamResult
impl Sync for AgentStreamResult
impl Unpin for AgentStreamResult
impl UnsafeUnpin for AgentStreamResult
impl UnwindSafe for AgentStreamResult
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