pub struct ProvidedCapability {
pub description: String,
pub schema: Option<Value>,
pub discoverable: bool,
}Expand description
Capability provider declaration (existing v1 model, plus discoverable).
Fields§
§description: String§schema: Option<Value>§discoverable: boolWhether core.capabilities.list / search report this capability.
Default true. false keeps it out of agent discovery (and so out of
agent tool generation); a caller that names it can still invoke it.
This is discovery hygiene, not access control.
Trait Implementations§
Source§impl Clone for ProvidedCapability
impl Clone for ProvidedCapability
Source§impl Debug for ProvidedCapability
impl Debug for ProvidedCapability
Source§impl<'de> Deserialize<'de> for ProvidedCapability
impl<'de> Deserialize<'de> for ProvidedCapability
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
Auto Trait Implementations§
impl Freeze for ProvidedCapability
impl RefUnwindSafe for ProvidedCapability
impl Send for ProvidedCapability
impl Sync for ProvidedCapability
impl Unpin for ProvidedCapability
impl UnsafeUnpin for ProvidedCapability
impl UnwindSafe for ProvidedCapability
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