pub struct ToolHints {
pub title: Option<String>,
pub read_only_hint: Option<bool>,
pub destructive_hint: Option<bool>,
pub idempotent_hint: Option<bool>,
pub open_world_hint: Option<bool>,
}Expand description
Behavioral hints matching MCP ToolAnnotations.
Fields§
§title: Option<String>Optional human-readable display title from annotations.
read_only_hint: Option<bool>If true, the tool does not modify its environment.
destructive_hint: Option<bool>If true, the tool may perform destructive updates.
idempotent_hint: Option<bool>If true, repeated calls with identical arguments have no extra effect.
open_world_hint: Option<bool>If true, the tool interacts with an open world of external entities.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ToolHints
impl<'de> Deserialize<'de> for ToolHints
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 ToolHints
impl StructuralPartialEq for ToolHints
Auto Trait Implementations§
impl Forget for ToolHints
impl Freeze for ToolHints
impl Move for ToolHints
impl RefUnwindSafe for ToolHints
impl Send for ToolHintswhere
RawVecInner: Send,
impl Sync for ToolHintswhere
RawVecInner: Sync,
impl Unpin for ToolHints
impl UnsafeUnpin for ToolHints
impl UnwindSafe for ToolHintswhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.