pub struct TurnResult {
pub text: String,
pub tool_calls: Vec<ToolCall>,
pub stop_reason: StopReason,
pub steps: u32,
}Expand description
Result of an agent turn
Fields§
§text: StringThe assistant’s text response
tool_calls: Vec<ToolCall>Tool calls made during this turn
stop_reason: StopReasonWhy the turn ended
steps: u32Number of steps taken
Implementations§
Source§impl TurnResult
impl TurnResult
Trait Implementations§
Source§impl Clone for TurnResult
impl Clone for TurnResult
Auto Trait Implementations§
impl Freeze for TurnResult
impl RefUnwindSafe for TurnResult
impl Send for TurnResult
impl Sync for TurnResult
impl Unpin for TurnResult
impl UnsafeUnpin for TurnResult
impl UnwindSafe for TurnResult
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