pub struct GitHubSchemaEnricher;Expand description
Static schema enricher for GitHub provider.
GitHub doesn’t support:
priority(no built-in priority on issues)parentId(sub-issues are relatively new and limited)customFields(no custom fields)issueType(no issue types)components(no components)projectId(not applicable)points(no story points)link_issuestool (not supported via API — use #123 mentions instead)
Trait Implementations§
Source§impl ToolEnricher for GitHubSchemaEnricher
impl ToolEnricher for GitHubSchemaEnricher
Source§fn value_model(&self, tool_name: &str) -> Option<ToolValueModel>
fn value_model(&self, tool_name: &str) -> Option<ToolValueModel>
Paper 3 — value-model annotations for GitHub read-only tools.
Mirrors the GitLab structure (PRs/issues/comments) — they share
the same list → detail → comments shape.
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>
GitHub SaaS = api.github.com. Self-hosted Enterprise users
can override per-tool via TOML; we don’t read args because the
host is a session-level fixed value.
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
Auto Trait Implementations§
impl Freeze for GitHubSchemaEnricher
impl RefUnwindSafe for GitHubSchemaEnricher
impl Send for GitHubSchemaEnricher
impl Sync for GitHubSchemaEnricher
impl Unpin for GitHubSchemaEnricher
impl UnsafeUnpin for GitHubSchemaEnricher
impl UnwindSafe for GitHubSchemaEnricher
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