Skip to main content

BoxPromptService

Type Alias BoxPromptService 

Source
pub type BoxPromptService = BoxCloneService<PromptRequest, GetPromptResult, Infallible>;
Expand description

A boxed, cloneable prompt service with Error = Infallible.

This is the service type used internally after applying middleware layers. It wraps any Service<PromptRequest> implementation so that the prompt handler can consume it without knowing the concrete middleware stack.

Aliased Typeยง

pub struct BoxPromptService(/* private fields */);