pub struct ResponsesToolDef {
pub type: String,
pub name: String,
pub description: Option<String>,
pub parameters: Option<String>,
pub strict: Option<bool>,
}Expand description
A tool the model MAY call — FLAT in this dialect (type/name/parameters at the
top level, no nested function object). parameters is a raw JSON Schema string.
Fields§
§type: String“function”
name: String§description: Option<String>§parameters: Option<String>raw JSON object
strict: Option<bool>defaults TRUE upstream; llmleaf’s own edge pins false
Implementations§
Source§impl ResponsesToolDef
impl ResponsesToolDef
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the value of description, or the default value if description is unset.
Sourcepub fn parameters(&self) -> &str
pub fn parameters(&self) -> &str
Returns the value of parameters, or the default value if parameters is unset.
Trait Implementations§
Source§impl Clone for ResponsesToolDef
impl Clone for ResponsesToolDef
Source§fn clone(&self) -> ResponsesToolDef
fn clone(&self) -> ResponsesToolDef
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 ResponsesToolDef
impl Debug for ResponsesToolDef
Source§impl Default for ResponsesToolDef
impl Default for ResponsesToolDef
Source§impl Message for ResponsesToolDef
impl Message for ResponsesToolDef
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for ResponsesToolDef
impl PartialEq for ResponsesToolDef
impl StructuralPartialEq for ResponsesToolDef
Auto Trait Implementations§
impl Freeze for ResponsesToolDef
impl RefUnwindSafe for ResponsesToolDef
impl Send for ResponsesToolDef
impl Sync for ResponsesToolDef
impl Unpin for ResponsesToolDef
impl UnsafeUnpin for ResponsesToolDef
impl UnwindSafe for ResponsesToolDef
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