pub struct AgentResponse {
pub steps: Vec<AgentStep>,
pub final_response: Option<String>,
pub iterations: usize,
pub stop_reason: AgentStopReason,
}Expand description
Final response from a complete agent run.
Fields§
§steps: Vec<AgentStep>All steps taken during execution.
final_response: Option<String>Final text response (if any).
iterations: usizeTotal number of iterations performed.
stop_reason: AgentStopReasonWhy the agent stopped.
Trait Implementations§
Source§impl Clone for AgentResponse
impl Clone for AgentResponse
Source§fn clone(&self) -> AgentResponse
fn clone(&self) -> AgentResponse
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 AgentResponse
impl RefUnwindSafe for AgentResponse
impl Send for AgentResponse
impl Sync for AgentResponse
impl Unpin for AgentResponse
impl UnsafeUnpin for AgentResponse
impl UnwindSafe for AgentResponse
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