ChatClient

Trait ChatClient 

Source
pub trait ChatClient: Send + Sync {
    // Required methods
    fn prompt(&self, prompt: Prompt) -> impl ChatClientRequestSpec;
    fn prompt_from_content<T>(&self, message: T) -> impl ChatClientRequestSpec
       where T: Into<Bytes>;
    fn prompt_from_default(&self) -> impl ChatClientRequestSpec;
}

Required Methods§

Source

fn prompt(&self, prompt: Prompt) -> impl ChatClientRequestSpec

Source

fn prompt_from_content<T>(&self, message: T) -> impl ChatClientRequestSpec
where T: Into<Bytes>,

Source

fn prompt_from_default(&self) -> impl ChatClientRequestSpec

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§