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.

Implementorsยง

Sourceยง

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