pub struct ChainResult {
pub chunks: Vec<Chunk>,
pub tool_results: Vec<ToolResult>,
pub total_usage: Option<Usage>,
pub budget_exhausted: bool,
pub messages: Vec<Message>,
}Expand description
Result of a chain loop execution.
Fields§
§chunks: Vec<Chunk>All chunks from all iterations.
tool_results: Vec<ToolResult>All tool results from all iterations (in execution order).
total_usage: Option<Usage>Accumulated usage across all iterations.
budget_exhausted: boolWhether the chain stopped because the budget was exhausted.
messages: Vec<Message>Final message history after the chain loop completes — includes the seed messages, every assistant turn, and any tool-result messages.
Auto Trait Implementations§
impl Freeze for ChainResult
impl RefUnwindSafe for ChainResult
impl Send for ChainResult
impl Sync for ChainResult
impl Unpin for ChainResult
impl UnsafeUnpin for ChainResult
impl UnwindSafe for ChainResult
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