pub struct ToolRequest {
pub call: ToolCall,
}Expand description
Request type for tool execution services.
Fields§
§call: ToolCallThe tool call to execute.
Implementations§
Trait Implementations§
Source§impl Clone for ToolRequest
impl Clone for ToolRequest
Source§fn clone(&self) -> ToolRequest
fn clone(&self) -> ToolRequest
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 moreSource§impl Debug for ToolRequest
impl Debug for ToolRequest
Source§impl Service<ToolRequest> for ToolService
impl Service<ToolRequest> for ToolService
Source§type Response = ToolResponse
type Response = ToolResponse
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<ToolService as Service<ToolRequest>>::Response, <ToolService as Service<ToolRequest>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ToolService as Service<ToolRequest>>::Response, <ToolService as Service<ToolRequest>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for ToolRequest
impl RefUnwindSafe for ToolRequest
impl Send for ToolRequest
impl Sync for ToolRequest
impl Unpin for ToolRequest
impl UnsafeUnpin for ToolRequest
impl UnwindSafe for ToolRequest
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