pub struct AgentToolResult {
pub content: Vec<UserContent>,
pub details: Value,
pub usage: Option<Usage>,
pub terminate: Option<bool>,
}Expand description
What a tool returns. terminate on every result of a batch ends the run after it.
Fields§
§content: Vec<UserContent>§details: Value§usage: Option<Usage>§terminate: Option<bool>Trait Implementations§
Source§impl Clone for AgentToolResult
impl Clone for AgentToolResult
Source§impl Debug for AgentToolResult
impl Debug for AgentToolResult
Source§impl<'de> Deserialize<'de> for AgentToolResult
impl<'de> Deserialize<'de> for AgentToolResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AgentToolResult
impl PartialEq for AgentToolResult
Source§impl Serialize for AgentToolResult
impl Serialize for AgentToolResult
impl StructuralPartialEq for AgentToolResult
Auto Trait Implementations§
impl Forget for AgentToolResult
impl Freeze for AgentToolResult
impl Move for AgentToolResult
impl RefUnwindSafe for AgentToolResult
impl Send for AgentToolResult
impl Sync for AgentToolResult
impl Unpin for AgentToolResult
impl UnsafeUnpin for AgentToolResult
impl UnwindSafe for AgentToolResult
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