pub struct ToolInvocation {
pub id: String,
pub name: String,
pub arguments: Value,
}
Expand description
Uniform tool invocation passed to routed tool services.
Fields§
§id: String
§name: String
§arguments: Value
Trait Implementations§
Source§impl Clone for ToolInvocation
impl Clone for ToolInvocation
Source§fn clone(&self) -> ToolInvocation
fn clone(&self) -> ToolInvocation
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 ToolInvocation
impl Debug for ToolInvocation
Source§impl<S, P> Service<ToolInvocation> for HandoffService<S, P>where
S: Service<ToolInvocation, Response = ToolOutput, Error = BoxError> + Send + 'static,
S::Future: Send + 'static,
P: HandoffPolicy + Clone,
impl<S, P> Service<ToolInvocation> for HandoffService<S, P>where
S: Service<ToolInvocation, Response = ToolOutput, Error = BoxError> + Send + 'static,
S::Future: Send + 'static,
P: HandoffPolicy + Clone,
Source§type Response = ToolOutput
type Response = ToolOutput
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<HandoffService<S, P> as Service<ToolInvocation>>::Response, <HandoffService<S, P> as Service<ToolInvocation>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<HandoffService<S, P> as Service<ToolInvocation>>::Response, <HandoffService<S, P> as Service<ToolInvocation>>::Error>> + Send>>
The future response value.
Source§impl<R, A> Service<ToolInvocation> for ToolApproval<R, A>
impl<R, A> Service<ToolInvocation> for ToolApproval<R, A>
Source§type Response = ToolOutput
type Response = ToolOutput
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<ToolApproval<R, A> as Service<ToolInvocation>>::Response, <ToolApproval<R, A> as Service<ToolInvocation>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ToolApproval<R, A> as Service<ToolInvocation>>::Response, <ToolApproval<R, A> as Service<ToolInvocation>>::Error>> + Send>>
The future response value.
Source§impl Service<ToolInvocation> for ToolRouter
impl Service<ToolInvocation> for ToolRouter
Source§type Response = ToolOutput
type Response = ToolOutput
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<ToolRouter as Service<ToolInvocation>>::Response, <ToolRouter as Service<ToolInvocation>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ToolRouter as Service<ToolInvocation>>::Response, <ToolRouter as Service<ToolInvocation>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl Freeze for ToolInvocation
impl RefUnwindSafe for ToolInvocation
impl Send for ToolInvocation
impl Sync for ToolInvocation
impl Unpin for ToolInvocation
impl UnwindSafe for ToolInvocation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more