pub struct FormatPipelineEnricher;Expand description
Format pipeline enricher — adds pipeline-level parameters to list tools.
Adds these parameters (using safe naming to avoid collisions):
format— output format (toon/json)budget— token budget for response size controlchunk— chunk number for navigating large results
API-level limit/offset are defined by individual tools where
the provider API supports pagination. The enricher does NOT add them.
Trait Implementations§
Source§impl ToolEnricher for FormatPipelineEnricher
impl ToolEnricher for FormatPipelineEnricher
Source§fn supported_categories(&self) -> &[ToolCategory]
fn supported_categories(&self) -> &[ToolCategory]
Which tool categories this provider/enricher supports.
Tools from other categories won’t be shown when this enricher is active.
Source§fn enrich_schema(&self, tool_name: &str, schema: &mut ToolSchema)
fn enrich_schema(&self, tool_name: &str, schema: &mut ToolSchema)
Modify the tool schema during
tools/list.Source§fn transform_args(&self, _tool_name: &str, args: &mut Value)
fn transform_args(&self, _tool_name: &str, args: &mut Value)
Transform arguments before tool execution.
Source§fn value_model(&self, _tool_name: &str) -> Option<ToolValueModel>
fn value_model(&self, _tool_name: &str) -> Option<ToolValueModel>
Optional: provider-shipped value model for
tool_name. Returned
models are merged into AdaptiveConfig.tools at startup so the
Paper 3 enrichment planner can read them via
effective_tool_value_model. Read moreSource§fn project_args(
&self,
_prev_tool: &str,
_prev_result: &Value,
_link: &FollowUpLink,
) -> Option<Value>
fn project_args( &self, _prev_tool: &str, _prev_result: &Value, _link: &FollowUpLink, ) -> Option<Value>
Build the JSON arguments for a speculatively pre-fetched
follow-up call. Read more
Source§fn rate_limit_host(&self, _tool_name: &str, _args: &Value) -> Option<String>
fn rate_limit_host(&self, _tool_name: &str, _args: &Value) -> Option<String>
Optional dynamic rate-limit host for
tool_name, derived from
runtime args. Provider returns the network host the call
will hit (e.g. Some("api.github.com")) so the speculative
dispatcher can cap concurrent in-flight prefetches per host. Read moreAuto Trait Implementations§
impl Freeze for FormatPipelineEnricher
impl RefUnwindSafe for FormatPipelineEnricher
impl Send for FormatPipelineEnricher
impl Sync for FormatPipelineEnricher
impl Unpin for FormatPipelineEnricher
impl UnsafeUnpin for FormatPipelineEnricher
impl UnwindSafe for FormatPipelineEnricher
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