pub enum SchemaTier {
Full,
Medium,
Minimal,
}Expand description
How verbose an advertised tool schema is. Full is today’s behavior —
byte-identical to the tool’s own description()/parameters(). Builtins
default to Full (small, load-bearing); the win target is fat activated
MCP tools (set via the global knob or a per-tool override, see
crate::Config::tool_schema_tier / crate::config::ToolOverride::schema_tier).
Variants§
Full
As-shipped: description()/parameters() verbatim.
Medium
Trimmed descriptions (top-level and per-param, truncated at a
sentence boundary); examples/title stripped everywhere.
required and every param’s type are untouched.
Minimal
One-sentence top-level description; only required params keep a
(one-sentence) description — optional params keep name+type only,
with their description dropped. required and every param’s
type are untouched, so the schema stays valid and fully typed.
Implementations§
Source§impl SchemaTier
impl SchemaTier
Sourcepub fn parse(s: &str) -> Option<SchemaTier>
pub fn parse(s: &str) -> Option<SchemaTier>
Parse a config/CLI string form ("full" / "medium" / "minimal").
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
The canonical string form (round-trips through Self::parse).
Trait Implementations§
Source§impl Clone for SchemaTier
impl Clone for SchemaTier
Source§fn clone(&self) -> SchemaTier
fn clone(&self) -> SchemaTier
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SchemaTier
Source§impl Debug for SchemaTier
impl Debug for SchemaTier
Source§impl Default for SchemaTier
impl Default for SchemaTier
Source§fn default() -> SchemaTier
fn default() -> SchemaTier
impl Eq for SchemaTier
Source§impl Hash for SchemaTier
impl Hash for SchemaTier
Source§impl PartialEq for SchemaTier
impl PartialEq for SchemaTier
impl StructuralPartialEq for SchemaTier
Auto Trait Implementations§
impl Freeze for SchemaTier
impl RefUnwindSafe for SchemaTier
impl Send for SchemaTier
impl Sync for SchemaTier
impl Unpin for SchemaTier
impl UnsafeUnpin for SchemaTier
impl UnwindSafe for SchemaTier
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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§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
key and return true if they are equal.