pub struct AgentResult {
pub session_id: SessionId,
pub final_state: AgentState,
pub messages: Vec<Message>,
pub tool_calls: Vec<ToolCall>,
pub tool_results: Vec<ToolResult>,
pub iterations: i32,
pub tokens_used: i64,
}Expand description
Agent 执行结果
Fields§
§session_id: SessionId§final_state: AgentState§messages: Vec<Message>§tool_calls: Vec<ToolCall>§tool_results: Vec<ToolResult>§iterations: i32§tokens_used: i64Trait Implementations§
Source§impl Clone for AgentResult
impl Clone for AgentResult
Source§fn clone(&self) -> AgentResult
fn clone(&self) -> AgentResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AgentResult
impl RefUnwindSafe for AgentResult
impl Send for AgentResult
impl Sync for AgentResult
impl Unpin for AgentResult
impl UnsafeUnpin for AgentResult
impl UnwindSafe for AgentResult
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