pub struct ToolSurface {
pub definitions: Vec<ToolDefinition>,
}Expand description
The tool definitions offered to the model for one invocation; renderers
turn this into the protocol’s tools array.
Fields§
§definitions: Vec<ToolDefinition>Model-facing ToolDefinitions, in offer order.
Implementations§
Source§impl ToolSurface
impl ToolSurface
Sourcepub fn from_definitions(definitions: Vec<ToolDefinition>) -> Self
pub fn from_definitions(definitions: Vec<ToolDefinition>) -> Self
Builds a surface from the given definitions.
Trait Implementations§
Source§impl Clone for ToolSurface
impl Clone for ToolSurface
Source§impl Debug for ToolSurface
impl Debug for ToolSurface
Source§impl Default for ToolSurface
impl Default for ToolSurface
Source§impl<'de> Deserialize<'de> for ToolSurface
impl<'de> Deserialize<'de> for ToolSurface
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 ToolSurface
impl PartialEq for ToolSurface
Source§impl Serialize for ToolSurface
impl Serialize for ToolSurface
impl StructuralPartialEq for ToolSurface
Auto Trait Implementations§
impl Freeze for ToolSurface
impl RefUnwindSafe for ToolSurface
impl Send for ToolSurface
impl Sync for ToolSurface
impl Unpin for ToolSurface
impl UnsafeUnpin for ToolSurface
impl UnwindSafe for ToolSurface
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