Trait CallableAsyncFunction

Source
pub trait CallableAsyncFunction<A> {
    // Required method
    fn invoke<'async_trait>(
        arguments: A,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>;
}
Expand description

This trait represents a struct containing actual ChatGPT function handling logic

Required Methods§

Source

fn invoke<'async_trait>( arguments: A, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>

Invokes this function. This method should not be called outside of internal logic.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§