pub struct AsyncAdapter<P, Fut, R>(/* private fields */);Available on crate feature
server only.Trait Implementations§
Source§impl<S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(), Fut, R>> for F
impl<S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(), Fut, R>> for F
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0,), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
F: FnOnce(T0) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0,), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
F: FnOnce(T0) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
F: FnOnce(T0, T1) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
F: FnOnce(T0, T1) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
T12: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
T12: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
T12: FromToolCallContextPart<S>,
T13: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
T12: FromToolCallContextPart<S>,
T13: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
T12: FromToolCallContextPart<S>,
T13: FromToolCallContextPart<S>,
T14: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
T12: FromToolCallContextPart<S>,
T13: FromToolCallContextPart<S>,
T14: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Source§impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
T12: FromToolCallContextPart<S>,
T13: FromToolCallContextPart<S>,
T14: FromToolCallContextPart<S>,
T15: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), Fut, R>> for Fwhere
T0: FromToolCallContextPart<S>,
T1: FromToolCallContextPart<S>,
T2: FromToolCallContextPart<S>,
T3: FromToolCallContextPart<S>,
T4: FromToolCallContextPart<S>,
T5: FromToolCallContextPart<S>,
T6: FromToolCallContextPart<S>,
T7: FromToolCallContextPart<S>,
T8: FromToolCallContextPart<S>,
T9: FromToolCallContextPart<S>,
T10: FromToolCallContextPart<S>,
T11: FromToolCallContextPart<S>,
T12: FromToolCallContextPart<S>,
T13: FromToolCallContextPart<S>,
T14: FromToolCallContextPart<S>,
T15: FromToolCallContextPart<S>,
F: FnOnce(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) -> Fut + Send,
Fut: Future<Output = R> + Send + 'static,
R: IntoCallToolResult + Send + 'static,
S: Send + Sync,
fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'static, Result<CallToolResult, Error>>
Auto Trait Implementations§
impl<P, Fut, R> Freeze for AsyncAdapter<P, Fut, R>
impl<P, Fut, R> RefUnwindSafe for AsyncAdapter<P, Fut, R>
impl<P, Fut, R> Send for AsyncAdapter<P, Fut, R>
impl<P, Fut, R> Sync for AsyncAdapter<P, Fut, R>
impl<P, Fut, R> Unpin for AsyncAdapter<P, Fut, R>
impl<P, Fut, R> UnsafeUnpin for AsyncAdapter<P, Fut, R>
impl<P, Fut, R> UnwindSafe for AsyncAdapter<P, Fut, R>
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