pub struct ToolBackend {
pub id: String,
pub description: String,
}Expand description
A named conditional backend behind a model-visible tool.
Backends let one tool expose narrow capabilities only when a presentation policy discloses them. For example, a unified web-reading tool can keep its ordinary HTTP path visible while disclosing an authenticated browser-page backend only after a continuation or strong user intent.
Fields§
§id: StringStable backend id within the owning tool.
description: StringShort model-facing description of when this backend is available.
Implementations§
Trait Implementations§
Source§impl Clone for ToolBackend
impl Clone for ToolBackend
Source§fn clone(&self) -> ToolBackend
fn clone(&self) -> ToolBackend
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 ToolBackend
impl Debug for ToolBackend
Source§impl<'de> Deserialize<'de> for ToolBackend
impl<'de> Deserialize<'de> for ToolBackend
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
impl Eq for ToolBackend
Source§impl JsonSchema for ToolBackend
impl JsonSchema for ToolBackend
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ToolBackend
impl PartialEq for ToolBackend
Source§impl Serialize for ToolBackend
impl Serialize for ToolBackend
impl StructuralPartialEq for ToolBackend
Auto Trait Implementations§
impl Freeze for ToolBackend
impl RefUnwindSafe for ToolBackend
impl Send for ToolBackend
impl Sync for ToolBackend
impl Unpin for ToolBackend
impl UnsafeUnpin for ToolBackend
impl UnwindSafe for ToolBackend
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