Trait ChatClient
pub trait ChatClient {
// Required methods
fn complete(&self, system: &str, user: &str) -> Result<String>;
fn model_id(&self) -> &str;
}Expand description
A model that turns one system + user exchange into assistant text.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".