pub struct ConfluenceSchemaEnricher;Expand description
Static schema enricher for Confluence knowledge base tools.
Today this enricher only advertises category support and leaves schemas and arguments unchanged. Confluence-specific schema hints can be added here later without changing the provider shape.
Implementations§
Trait Implementations§
Source§impl Default for ConfluenceSchemaEnricher
impl Default for ConfluenceSchemaEnricher
Source§impl ToolEnricher for ConfluenceSchemaEnricher
impl ToolEnricher for ConfluenceSchemaEnricher
Source§fn value_model(&self, tool_name: &str) -> Option<ToolValueModel>
fn value_model(&self, tool_name: &str) -> Option<ToolValueModel>
Paper 3 value models for the six KB tools.
Read endpoints are ReadOnly with realistic typical/max sizes
drawn from observed Confluence pages (a single page can be tens
of KB once attachments / large tables / embedded images are
rendered as storage XML). search_knowledge_base and
list_knowledge_base_pages declare a get_knowledge_base_page
follow-up with pageId projection so the planner can prefetch
the most likely next call. Mutating endpoints are
MutatesExternal and never speculatable.
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 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 ConfluenceSchemaEnricher
impl RefUnwindSafe for ConfluenceSchemaEnricher
impl Send for ConfluenceSchemaEnricher
impl Sync for ConfluenceSchemaEnricher
impl Unpin for ConfluenceSchemaEnricher
impl UnsafeUnpin for ConfluenceSchemaEnricher
impl UnwindSafe for ConfluenceSchemaEnricher
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