pub struct ModelCompleteParams {
pub command_id: String,
pub messages: Vec<ModelCompleteMessage>,
pub system: Option<String>,
pub max_tokens: u32,
}Expand description
model/complete params: the retry id, 1 to 32 messages (the first and the
last user), an optional system text and the output bound. No session and
no model: the host picks the model. The host answers an unknown field with
invalidParams; the type itself accepts it.
Fields§
§command_id: StringThe client-minted UUIDv7 retry id.
messages: Vec<ModelCompleteMessage>What the model answers, oldest first.
system: Option<String>The system text, when the caller sends one.
max_tokens: u32The most tokens the model may write.
Trait Implementations§
Source§impl Clone for ModelCompleteParams
impl Clone for ModelCompleteParams
Source§impl Debug for ModelCompleteParams
impl Debug for ModelCompleteParams
Source§impl<'de> Deserialize<'de> for ModelCompleteParams
impl<'de> Deserialize<'de> for ModelCompleteParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ModelCompleteParams
Source§impl PartialEq for ModelCompleteParams
impl PartialEq for ModelCompleteParams
Source§impl Serialize for ModelCompleteParams
impl Serialize for ModelCompleteParams
impl StructuralPartialEq for ModelCompleteParams
Auto Trait Implementations§
impl Forget for ModelCompleteParams
impl Freeze for ModelCompleteParams
impl Move for ModelCompleteParams
impl RefUnwindSafe for ModelCompleteParams
impl Send for ModelCompleteParams
impl Sync for ModelCompleteParams
impl Unpin for ModelCompleteParams
impl UnsafeUnpin for ModelCompleteParams
impl UnwindSafe for ModelCompleteParams
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