pub struct ChatCompletionMessageToolCall {
pub id: String,
pub type: FunctionType,
pub function: FunctionCall,
}Expand description
Tool call kept locally to preserve type: "function" in unary request/response payloads.
Differs from upstream: type is serialized by default and also defaults to
function when omitted during deserialization, preserving compatibility with
both Dynamo’s historical wire format and upstream spec-compliant inputs.
Fields§
§id: String§type: FunctionType§function: FunctionCallTrait Implementations§
Source§impl ComposeSchema for ChatCompletionMessageToolCall
Available on crate feature protocol-schema only.
impl ComposeSchema for ChatCompletionMessageToolCall
Available on crate feature
protocol-schema only.Source§impl<'de> Deserialize<'de> for ChatCompletionMessageToolCall
impl<'de> Deserialize<'de> for ChatCompletionMessageToolCall
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 StructuralPartialEq for ChatCompletionMessageToolCall
Source§impl ToSchema for ChatCompletionMessageToolCall
Available on crate feature protocol-schema only.
impl ToSchema for ChatCompletionMessageToolCall
Available on crate feature
protocol-schema only.Auto Trait Implementations§
impl Freeze for ChatCompletionMessageToolCall
impl RefUnwindSafe for ChatCompletionMessageToolCall
impl Send for ChatCompletionMessageToolCall
impl Sync for ChatCompletionMessageToolCall
impl Unpin for ChatCompletionMessageToolCall
impl UnsafeUnpin for ChatCompletionMessageToolCall
impl UnwindSafe for ChatCompletionMessageToolCall
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