Skip to main content

UserInputHandlerFn

Type Alias UserInputHandlerFn 

Source
pub type UserInputHandlerFn = Arc<dyn Fn(UserInputRequest, String) -> Pin<Box<dyn Future<Output = Result<UserInputResponse, CopilotError>> + Send>> + Send + Sync>;
Expand description

A user input handler is an async function that takes a user input request and returns a response.

Aliased Typeยง

pub struct UserInputHandlerFn { /* private fields */ }