Skip to main content

CallToolHandler

Trait CallToolHandler 

Source
pub trait CallToolHandler<S, A> {
    // Required method
    fn call(
        self,
        context: ToolCallContext<'_, S>,
    ) -> BoxFuture<'_, Result<CallToolResult, Error>>;
}
Available on crate feature server only.

Required Methods§

Source

fn call( self, context: ToolCallContext<'_, S>, ) -> BoxFuture<'_, Result<CallToolResult, Error>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(), Fut, R>> for F
where F: FnOnce() -> Fut + Send, Fut: Future<Output = R> + Send + 'static, R: IntoCallToolResult + Send + 'static, S: Send + Sync,

Source§

impl<S, F, R> CallToolHandler<S, AsyncMethodAdapter<(), R>> for F
where F: FnOnce(&S) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<S, F, R> CallToolHandler<S, SyncAdapter<(), R>> for F
where F: FnOnce() -> R + Send, R: IntoCallToolResult + Send, S: Send + Sync,

Source§

impl<S, F, R> CallToolHandler<S, SyncMethodAdapter<(), R>> for F
where F: FnOnce(&S) -> R + Send, R: IntoCallToolResult + Send, S: Send + Sync,

Source§

impl<T0, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0,), Fut, R>> for F
where T0: FromToolCallContextPart<S>, F: FnOnce(T0) -> Fut + Send, Fut: Future<Output = R> + Send + 'static, R: IntoCallToolResult + Send + 'static, S: Send + Sync,

Source§

impl<T0, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0,), R>> for F
where T0: FromToolCallContextPart<S>, F: FnOnce(&S, T0) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, S, F, R> CallToolHandler<S, SyncAdapter<(T0,), R>> for F
where T0: FromToolCallContextPart<S>, F: FnOnce(T0) -> R + Send, R: IntoCallToolResult + Send, S: Send + Sync,

Source§

impl<T0, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0,), R>> for F
where T0: FromToolCallContextPart<S>, F: FnOnce(&S, T0) -> R + Send, R: IntoCallToolResult + Send, S: Send + Sync,

Source§

impl<T0, T1, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1), Fut, R>> for F
where 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,

Source§

impl<T0, T1, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, F: FnOnce(&S, T0, T1) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, F: FnOnce(T0, T1) -> R + Send, R: IntoCallToolResult + Send, S: Send + Sync,

Source§

impl<T0, T1, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, F: FnOnce(&S, T0, T1) -> R + Send, R: IntoCallToolResult + Send, S: Send + Sync,

Source§

impl<T0, T1, T2, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2), Fut, R>> for F
where 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,

Source§

impl<T0, T1, T2, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, T2: FromToolCallContextPart<S>, F: FnOnce(&S, T0, T1, T2) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, T2: FromToolCallContextPart<S>, F: FnOnce(T0, T1, T2) -> R + Send, R: IntoCallToolResult + Send, S: Send + Sync,

Source§

impl<T0, T1, T2, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, T2: FromToolCallContextPart<S>, F: FnOnce(&S, T0, T1, T2) -> R + Send, R: IntoCallToolResult + Send, S: Send + Sync,

Source§

impl<T0, T1, T2, T3, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3), Fut, R>> for F
where 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,

Source§

impl<T0, T1, T2, T3, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, T2: FromToolCallContextPart<S>, T3: FromToolCallContextPart<S>, F: FnOnce(&S, T0, T1, T2, T3) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3), R>> for F

Source§

impl<T0, T1, T2, T3, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3), R>> for F

Source§

impl<T0, T1, T2, T3, T4, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4), Fut, R>> for F
where 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,

Source§

impl<T0, T1, T2, T3, T4, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, T2: FromToolCallContextPart<S>, T3: FromToolCallContextPart<S>, T4: FromToolCallContextPart<S>, F: FnOnce(&S, T0, T1, T2, T3, T4) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4), R>> for F

Source§

impl<T0, T1, T2, T3, T4, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, S, F, Fut, R> CallToolHandler<S, AsyncAdapter<(T0, T1, T2, T3, T4, T5), Fut, R>> for F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, T2: FromToolCallContextPart<S>, T3: FromToolCallContextPart<S>, T4: FromToolCallContextPart<S>, T5: FromToolCallContextPart<S>, F: FnOnce(&S, T0, T1, T2, T3, T4, T5) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6), R>> for F
where T0: FromToolCallContextPart<S>, T1: FromToolCallContextPart<S>, T2: FromToolCallContextPart<S>, T3: FromToolCallContextPart<S>, T4: FromToolCallContextPart<S>, T5: FromToolCallContextPart<S>, T6: FromToolCallContextPart<S>, F: FnOnce(&S, T0, T1, T2, T3, T4, T5, T6) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7, T8) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14), R>> for F

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 F
where 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,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, S, F, R> CallToolHandler<S, AsyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), R>> for F
where 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(&S, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) -> BoxFuture<'_, R>, R: IntoCallToolResult + Send + 'static, S: Send + Sync + 'static,

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, S, F, R> CallToolHandler<S, SyncAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), R>> for F

Source§

impl<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, S, F, R> CallToolHandler<S, SyncMethodAdapter<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15), R>> for F