pub struct JsToolCall {
pub id: String,
pub name: String,
pub input: Value,
}Expand description
A tool call from the model.
Fields§
§id: StringTool use ID (for providing results back)
name: StringTool name
input: ValueTool input parameters
Trait Implementations§
Source§impl Clone for JsToolCall
impl Clone for JsToolCall
Source§fn clone(&self) -> JsToolCall
fn clone(&self) -> JsToolCall
Returns a duplicate of the value. Read more
1.0.0 · 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 JsToolCall
impl Debug for JsToolCall
Source§impl<'de> Deserialize<'de> for JsToolCall
impl<'de> Deserialize<'de> for JsToolCall
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 FromNapiValue for JsToolCall
impl FromNapiValue for JsToolCall
Source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
Source§impl Serialize for JsToolCall
impl Serialize for JsToolCall
Source§impl ToNapiValue for JsToolCall
impl ToNapiValue for JsToolCall
Source§unsafe fn to_napi_value(env: napi_env, val: JsToolCall) -> Result<napi_value>
unsafe fn to_napi_value(env: napi_env, val: JsToolCall) -> Result<napi_value>
Safety Read more
Source§impl TypeName for JsToolCall
impl TypeName for JsToolCall
Source§impl ValidateNapiValue for JsToolCall
impl ValidateNapiValue for JsToolCall
Source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for JsToolCall
impl RefUnwindSafe for JsToolCall
impl Send for JsToolCall
impl Sync for JsToolCall
impl Unpin for JsToolCall
impl UnwindSafe for JsToolCall
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