pub trait OAIChatLikeRequest {
// Required methods
fn messages(&self) -> Value;
fn should_add_generation_prompt(&self) -> bool;
// Provided methods
fn tools(&self) -> Option<Value> { ... }
fn tool_choice(&self) -> Option<Value> { ... }
}Expand description
Trait that defines a request that can map to an OpenAI-like request.