pub struct ResponseCustomToolCall {
pub call_id: String,
pub input: String,
pub name: String,
pub type_: String,
pub id: Option<String>,
pub namespace: Option<String>,
}Expand description
A call to a custom tool created by the model.
Fields§
§call_id: StringAn identifier used to map this custom tool call to a tool call output.
input: StringThe input for the custom tool call generated by the model.
name: StringThe name of the custom tool being called.
type_: StringThe type of the custom tool call. Always custom_tool_call.
id: Option<String>The unique ID of the custom tool call in the OpenAI platform.
namespace: Option<String>The namespace of the custom tool being called.
Trait Implementations§
Source§impl Clone for ResponseCustomToolCall
impl Clone for ResponseCustomToolCall
Source§fn clone(&self) -> ResponseCustomToolCall
fn clone(&self) -> ResponseCustomToolCall
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 moreSource§impl Debug for ResponseCustomToolCall
impl Debug for ResponseCustomToolCall
Source§impl<'de> Deserialize<'de> for ResponseCustomToolCall
impl<'de> Deserialize<'de> for ResponseCustomToolCall
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
Auto Trait Implementations§
impl Freeze for ResponseCustomToolCall
impl RefUnwindSafe for ResponseCustomToolCall
impl Send for ResponseCustomToolCall
impl Sync for ResponseCustomToolCall
impl Unpin for ResponseCustomToolCall
impl UnsafeUnpin for ResponseCustomToolCall
impl UnwindSafe for ResponseCustomToolCall
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