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
First sentence of each tool description (at most 64 chars) and no parameter descriptions - Pi-style, power users Best for: Maximum efficiency, experienced users, token-constrained contexts
Progressive
Complete tool and parameter descriptions; only unusually long tails are
trimmed at a sentence boundary (measured ~1,793 tokens for the default
catalog; budgeted ≤ 2,000 in emitted_model_tool_schema_fits_within_first_request_budget)
Best for: General usage (recommended)
Full
Every tool and parameter description sent unmodified Best for: Debugging tool definitions, comprehensive documentation
Implementations§
Source§impl ToolDocumentationMode
impl ToolDocumentationMode
Sourcepub fn allowed_values() -> &'static [&'static str]
pub fn allowed_values() -> &'static [&'static str]
Allowed configuration values for validation
Trait Implementations§
Source§impl Clone for ToolDocumentationMode
impl Clone for ToolDocumentationMode
impl Copy for ToolDocumentationMode
Source§impl Debug for ToolDocumentationMode
impl Debug for ToolDocumentationMode
Source§impl Default for ToolDocumentationMode
impl Default for ToolDocumentationMode
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>,
Source§impl Display for ToolDocumentationMode
impl Display for ToolDocumentationMode
impl Eq for ToolDocumentationMode
Source§impl JsonSchema for ToolDocumentationMode
impl JsonSchema for ToolDocumentationMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for ToolDocumentationMode
impl PartialEq for ToolDocumentationMode
Source§impl Serialize for ToolDocumentationMode
impl Serialize 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 UnsafeUnpin 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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more