pub enum ToolSource {
Builtin,
Plugin(String),
Config(String),
Skill(String),
}Expand description
Who put this tool in the registry. Shown by eclipse tools list, in the panel and in the
schema document’s description of itself, because “which tool is this and who added it” is
the first question when an extension misbehaves.
Variants§
Builtin
Compiled in, or registered by the runtime on the agent’s behalf (the memory tool).
Plugin(String)
A kind = "tool" plugin. The name is the plugin directory’s name.
Config(String)
A server config.toml declares under [[mcp]] (#352). The name is mcp:<server>, so the
label reads config:mcp:<server> — beside plugin:mcp:<server>, because which file the
entry lives in is exactly what this label is for.
Skill(String)
A tool a skill provides. Nothing registers one: M4 skills are Markdown the model reads, not code Eclipse runs, so the variant is kept for the listing and left unused.
Implementations§
Trait Implementations§
Source§impl Clone for ToolSource
impl Clone for ToolSource
Source§impl Debug for ToolSource
impl Debug for ToolSource
impl Eq for ToolSource
Source§impl PartialEq for ToolSource
impl PartialEq for ToolSource
Source§impl Serialize for ToolSource
impl Serialize for ToolSource
impl StructuralPartialEq for ToolSource
Auto Trait Implementations§
impl Forget for ToolSource
impl Freeze for ToolSource
impl Move for ToolSource
impl RefUnwindSafe for ToolSource
impl Send for ToolSourcewhere
RawVecInner: Send,
impl Sync for ToolSourcewhere
RawVecInner: Sync,
impl Unpin for ToolSource
impl UnsafeUnpin for ToolSource
impl UnwindSafe for ToolSourcewhere
RawVecInner: UnwindSafe,
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,
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
key and return true if they are equal.