pub struct StepResult {
pub step_index: u32,
pub response_content: Vec<Content>,
pub tool_calls: Vec<ToolCallPart>,
pub tool_results: Vec<ToolResultPart>,
pub finish_reason: FinishReason,
pub usage: Usage,
}Expand description
Result of a single step in the generation process.
Fields§
§step_index: u32The index of this step (0-based).
response_content: Vec<Content>The content returned by the model in this step.
tool_calls: Vec<ToolCallPart>The tool calls generated in this step.
tool_results: Vec<ToolResultPart>The tool results produced in this step (executed after the model response).
finish_reason: FinishReasonThe reason why the model stopped generating in this step.
usage: UsageThe token usage for this step.
Trait Implementations§
Source§impl Clone for StepResult
impl Clone for StepResult
Source§fn clone(&self) -> StepResult
fn clone(&self) -> StepResult
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 Freeze for StepResult
impl RefUnwindSafe for StepResult
impl Send for StepResult
impl Sync for StepResult
impl Unpin for StepResult
impl UnwindSafe for StepResult
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