Skip to main content

CompletionClientDyn

Trait CompletionClientDyn 

Source
pub trait CompletionClientDyn {
    // Required methods
    fn completion_model<'a>(
        &self,
        model: &str,
    ) -> Box<dyn CompletionModelDyn + 'a>;
    fn agent<'a>(&self, model: &str) -> AgentBuilder<CompletionModelHandle<'a>>;
}
👎Deprecated since 0.25.0:

DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use CompletionClient instead.

Required Methods§

Source

fn completion_model<'a>(&self, model: &str) -> Box<dyn CompletionModelDyn + 'a>

👎Deprecated since 0.25.0:

DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use CompletionClient instead.

Create a completion model with the given name.

Source

fn agent<'a>(&self, model: &str) -> AgentBuilder<CompletionModelHandle<'a>>

👎Deprecated since 0.25.0:

DynClientBuilder and related features have been deprecated and will be removed in a future release. In this case, use CompletionClient instead.

Create an agent builder with the given completion model.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T, M, R> CompletionClientDyn for T
where T: CompletionClient<CompletionModel = M>, M: CompletionModel<StreamingResponse = R> + 'static, R: Clone + Unpin + GetTokenUsage + 'static,