pub struct ToolUseResult {
pub stop_reason: StopReason,
pub response: ChatResponse,
pub messages: Vec<Message>,
pub iterations: usize,
pub tool_calls_executed: usize,
}Expand description
ToolUseLoop 执行结果
Fields§
§stop_reason: StopReason§response: ChatResponse§messages: Vec<Message>§iterations: usize§tool_calls_executed: usize执行过程中调用的工具总次数
Trait Implementations§
Source§impl Clone for ToolUseResult
impl Clone for ToolUseResult
Source§fn clone(&self) -> ToolUseResult
fn clone(&self) -> ToolUseResult
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 ToolUseResult
impl RefUnwindSafe for ToolUseResult
impl Send for ToolUseResult
impl Sync for ToolUseResult
impl Unpin for ToolUseResult
impl UnsafeUnpin for ToolUseResult
impl UnwindSafe for ToolUseResult
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