pub enum ToolDocumentationMode {
Minimal,
Progressive,
Full,
}Expand description
Tool documentation mode (inspired by pi-coding-agent progressive disclosure) Controls how much tool documentation is loaded upfront vs on-demand
Variants§
Minimal
Minimal signatures only (~800 tokens total) - Pi-style, power users Best for: Maximum efficiency, experienced users, token-constrained contexts
Progressive
Signatures + common parameters (~1,200 tokens total) - Smart hints Best for: General usage, balances overhead vs guidance (recommended)
Full
Full documentation upfront (~3,000 tokens total) - Current behavior Best for: Maximum hand-holding, comprehensive parameter documentation
Implementations§
Trait Implementations§
Source§impl Clone for ToolDocumentationMode
impl Clone for ToolDocumentationMode
Source§fn clone(&self) -> ToolDocumentationMode
fn clone(&self) -> ToolDocumentationMode
Returns a duplicate of the value. Read more
1.0.0 · 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 ToolDocumentationMode
impl Debug for ToolDocumentationMode
Source§impl Default for ToolDocumentationMode
impl Default for ToolDocumentationMode
Source§fn default() -> ToolDocumentationMode
fn default() -> ToolDocumentationMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolDocumentationMode
impl<'de> Deserialize<'de> for ToolDocumentationMode
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
Source§impl Display for ToolDocumentationMode
impl Display for ToolDocumentationMode
Source§impl JsonSchema for ToolDocumentationMode
impl JsonSchema for ToolDocumentationMode
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
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 is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ToolDocumentationMode
impl PartialEq for ToolDocumentationMode
Source§impl Serialize for ToolDocumentationMode
impl Serialize for ToolDocumentationMode
impl Copy for ToolDocumentationMode
impl Eq for ToolDocumentationMode
impl StructuralPartialEq for ToolDocumentationMode
Auto Trait Implementations§
impl Freeze for ToolDocumentationMode
impl RefUnwindSafe for ToolDocumentationMode
impl Send for ToolDocumentationMode
impl Sync for ToolDocumentationMode
impl Unpin for ToolDocumentationMode
impl UnwindSafe for ToolDocumentationMode
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,
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.