Skip to main content

LlmPortServiceExt

Trait LlmPortServiceExt 

Source
pub trait LlmPortServiceExt: LlmPort {
    // Required method
    fn into_llm_service(self: Arc<Self>) -> LlmService;
}
Expand description

Extension trait that converts an LlmPort into a tower service.

Required Methods§

Source

fn into_llm_service(self: Arc<Self>) -> LlmService

Convert this LLM port into a tower::Service for completions.

Implementations on Foreign Types§

Source§

impl LlmPortServiceExt for dyn LlmPort

Implementors§

Source§

impl<T: LlmPort + 'static> LlmPortServiceExt for T