pub struct FunctionObject {
pub name: String,
pub description: Option<String>,
pub parameters: Option<Value>,
pub strict: Option<bool>,
pub defer_loading: Option<bool>,
}Expand description
Chat function definition with the vLLM/SGLang deferred-rendering extension.
Keep this local because the SDK type drops defer_loading before rendering.
Fields§
§name: String§description: Option<String>§parameters: Option<Value>§strict: Option<bool>§defer_loading: Option<bool>Passed to the chat template; discovery and tool execution remain external.
Trait Implementations§
Source§impl Clone for FunctionObject
impl Clone for FunctionObject
Source§impl ComposeSchema for FunctionObject
Available on crate feature protocol-schema only.
impl ComposeSchema for FunctionObject
Available on crate feature
protocol-schema only.Source§impl Debug for FunctionObject
impl Debug for FunctionObject
Source§impl Default for FunctionObject
impl Default for FunctionObject
Source§impl<'de> Deserialize<'de> for FunctionObject
impl<'de> Deserialize<'de> for FunctionObject
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
Source§impl PartialEq for FunctionObject
impl PartialEq for FunctionObject
Source§impl Serialize for FunctionObject
impl Serialize for FunctionObject
impl StructuralPartialEq for FunctionObject
Auto Trait Implementations§
impl Forget for FunctionObject
impl Freeze for FunctionObject
impl RefUnwindSafe for FunctionObject
impl Send for FunctionObject
impl Sync for FunctionObject
impl Unpin for FunctionObject
impl UnsafeUnpin for FunctionObject
impl UnwindSafe for FunctionObject
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