pub trait RequestBuild {
Show 13 methods
// Required methods
fn with_model(self, model: String) -> Self;
fn with_messages(self, messages: Vec<ChatMessage>) -> Self;
fn add_message(self, message: ChatMessage) -> Self;
fn with_request_id(self, request_id: String) -> Self;
fn with_do_sample(self, do_sample: bool) -> Self;
fn with_temperature(self, temperature: f32) -> Self;
fn with_top_p(self, top_p: f32) -> Self;
fn with_max_tokens(self, max_tokens: i32) -> Self;
fn with_stop(self, stop: Vec<String>) -> Self;
fn bind_function(self, function: FunctionTool) -> Self;
fn bind_retrieval(self, retrieval: Retrieval) -> Self;
fn bind_web_search(self, web_search: WebSearch) -> Self;
fn with_tool_choice(self, tool_choice: String) -> Self;
}
Required Methods§
fn with_model(self, model: String) -> Self
fn with_messages(self, messages: Vec<ChatMessage>) -> Self
fn add_message(self, message: ChatMessage) -> Self
fn with_request_id(self, request_id: String) -> Self
fn with_do_sample(self, do_sample: bool) -> Self
fn with_temperature(self, temperature: f32) -> Self
fn with_top_p(self, top_p: f32) -> Self
fn with_max_tokens(self, max_tokens: i32) -> Self
fn with_stop(self, stop: Vec<String>) -> Self
fn bind_function(self, function: FunctionTool) -> Self
fn bind_retrieval(self, retrieval: Retrieval) -> Self
fn bind_web_search(self, web_search: WebSearch) -> Self
fn with_tool_choice(self, tool_choice: String) -> Self
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.