pub struct HostedToolDefinition { /* private fields */ }Expand description
Model-visible provider-hosted tool.
Implementations§
Source§impl HostedToolDefinition
impl HostedToolDefinition
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Returns the model-visible description.
Sourcepub const fn input_schema(&self) -> &Value
pub const fn input_schema(&self) -> &Value
Returns the stable input schema used by client fallback and accounting.
Sourcepub const fn kind(&self) -> HostedToolKind
pub const fn kind(&self) -> HostedToolKind
Returns the required hosted capability kind.
Sourcepub const fn options(&self) -> &HostedToolOptions
pub const fn options(&self) -> &HostedToolOptions
Returns portable hosted-tool options.
Trait Implementations§
Source§impl Clone for HostedToolDefinition
impl Clone for HostedToolDefinition
Source§fn clone(&self) -> HostedToolDefinition
fn clone(&self) -> HostedToolDefinition
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 HostedToolDefinition
impl Debug for HostedToolDefinition
Source§impl PartialEq for HostedToolDefinition
impl PartialEq for HostedToolDefinition
impl StructuralPartialEq for HostedToolDefinition
Auto Trait Implementations§
impl Freeze for HostedToolDefinition
impl RefUnwindSafe for HostedToolDefinition
impl Send for HostedToolDefinition
impl Sync for HostedToolDefinition
impl Unpin for HostedToolDefinition
impl UnsafeUnpin for HostedToolDefinition
impl UnwindSafe for HostedToolDefinition
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