pub struct CompletionRequest {
pub model: String,
pub prompt_pack: String,
pub system_prompt_name: String,
pub system_prompt_body: String,
pub prompt: String,
pub messages: Vec<ProviderMessage>,
pub tools: Vec<ToolSpec>,
pub skill_count: usize,
pub mcp_servers: BTreeMap<String, McpServerConfig>,
}Fields§
§model: String§prompt_pack: String§system_prompt_name: String§system_prompt_body: String§prompt: String§messages: Vec<ProviderMessage>Structured conversation history. Providers may prefer this over prompt.
tools: Vec<ToolSpec>§skill_count: usize§mcp_servers: BTreeMap<String, McpServerConfig>Trait Implementations§
Source§impl Clone for CompletionRequest
impl Clone for CompletionRequest
Source§fn clone(&self) -> CompletionRequest
fn clone(&self) -> CompletionRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompletionRequest
impl RefUnwindSafe for CompletionRequest
impl Send for CompletionRequest
impl Sync for CompletionRequest
impl Unpin for CompletionRequest
impl UnsafeUnpin for CompletionRequest
impl UnwindSafe for CompletionRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more