pub enum ApiToolCallProtocol {
Json,
FunctionParameterXml,
}Variants§
Implementations§
Source§impl ApiToolCallProtocol
impl ApiToolCallProtocol
Sourcepub const fn generated_control_token_texts(self) -> &'static [&'static str]
pub const fn generated_control_token_texts(self) -> &'static [&'static str]
Atomic tokenizer entries that this wire protocol may need to emit.
The sampling layer resolves these texts against the loaded tokenizer and allows only exact matches. Other added-vocabulary tokens remain masked.
Sourcepub fn generated_response_envelope(self) -> Option<ResponseCompletionEnvelope>
pub fn generated_response_envelope(self) -> Option<ResponseCompletionEnvelope>
Lexical envelope that may satisfy a pending response boundary.
Trait Implementations§
Source§impl Clone for ApiToolCallProtocol
impl Clone for ApiToolCallProtocol
Source§fn clone(&self) -> ApiToolCallProtocol
fn clone(&self) -> ApiToolCallProtocol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ApiToolCallProtocol
Source§impl Debug for ApiToolCallProtocol
impl Debug for ApiToolCallProtocol
Source§impl Default for ApiToolCallProtocol
impl Default for ApiToolCallProtocol
Source§fn default() -> ApiToolCallProtocol
fn default() -> ApiToolCallProtocol
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ApiToolCallProtocol
impl<'de> Deserialize<'de> for ApiToolCallProtocol
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 ApiToolCallProtocol
Source§impl PartialEq for ApiToolCallProtocol
impl PartialEq for ApiToolCallProtocol
Source§impl Serialize for ApiToolCallProtocol
impl Serialize for ApiToolCallProtocol
impl StructuralPartialEq for ApiToolCallProtocol
Auto Trait Implementations§
impl Freeze for ApiToolCallProtocol
impl RefUnwindSafe for ApiToolCallProtocol
impl Send for ApiToolCallProtocol
impl Sync for ApiToolCallProtocol
impl Unpin for ApiToolCallProtocol
impl UnsafeUnpin for ApiToolCallProtocol
impl UnwindSafe for ApiToolCallProtocol
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