pub struct AgentRunResult<Output> {
pub output: Output,
pub messages: Vec<ModelRequest>,
pub responses: Vec<ModelResponse>,
pub usage: RunUsage,
pub run_id: String,
pub finish_reason: FinishReason,
pub metadata: Option<Value>,
}Expand description
Result of an agent run.
Fields§
§output: OutputThe output data.
messages: Vec<ModelRequest>Message history.
responses: Vec<ModelResponse>All model responses.
usage: RunUsageUsage for this run.
run_id: StringRun ID.
finish_reason: FinishReasonFinish reason.
metadata: Option<Value>Metadata.
Implementations§
Source§impl<Output> AgentRunResult<Output>
impl<Output> AgentRunResult<Output>
Sourcepub fn into_output(self) -> Output
pub fn into_output(self) -> Output
Consume and return output.
Trait Implementations§
Source§impl<Output> Clone for AgentRunResult<Output>where
Output: Clone,
impl<Output> Clone for AgentRunResult<Output>where
Output: Clone,
Source§fn clone(&self) -> AgentRunResult<Output>
fn clone(&self) -> AgentRunResult<Output>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<Output> Freeze for AgentRunResult<Output>where
Output: Freeze,
impl<Output> RefUnwindSafe for AgentRunResult<Output>where
Output: RefUnwindSafe,
impl<Output> Send for AgentRunResult<Output>where
Output: Send,
impl<Output> Sync for AgentRunResult<Output>where
Output: Sync,
impl<Output> Unpin for AgentRunResult<Output>where
Output: Unpin,
impl<Output> UnwindSafe for AgentRunResult<Output>where
Output: UnwindSafe,
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