Skip to main content

Module handler

Module handler 

Source

Structs§

AuthenticatedMarker
Marker for handlers that declare an Auth extractor as their second parameter.
CompletionRawMarker
PromptRawMarker
ResourceRawMarker
TypedMarker
Marker for typed (deserialised) handlers. Works for both |params: MyStruct| and |args: serde_json::Value| since Value implements DeserializeOwned.

Traits§

CompletionHandler
IntoToolResult
Anything that can be returned from a tool handler
PromptHandler
ResourceHandler
ToolHandler
Implemented for async functions that can serve as tool handlers.

Type Aliases§

BoxFuture
A type-erased, boxed future
CompletionHandlerFn
HandlerFn
Boxed handler function for tool calls
PromptHandlerFn
ResourceHandlerFn
ToolHandlerFn