MingaAgent.Tool.BundledSources (Minga v0.1.0)

Copy Markdown View Source

Stable source identifiers and reserved names for bundled tool packs.

This module is metadata only. Core registry code can reserve names without depending on a concrete bundled pack implementation, and packs can use the same source identifiers when registering their specs.

Summary

Types

Known bundled tool-pack source identifier.

Functions

Returns true when the source is a known bundled tool-pack source.

Returns the bundled LSP tool pack source.

Returns the stable tool names owned by the bundled LSP pack.

Returns the bundled read-only tool pack source.

Returns the stable tool names owned by the bundled read-only pack.

Returns all bundled tool names that remain reserved even if their pack is disabled.

Returns the bundled source that owns a reserved tool name.

Types

source()

@type source() :: {:bundle, :read_only_tools} | {:bundle, :lsp_tools}

Known bundled tool-pack source identifier.

Functions

known_source?(arg1)

@spec known_source?(term()) :: boolean()

Returns true when the source is a known bundled tool-pack source.

lsp_source()

@spec lsp_source() :: {:bundle, :lsp_tools}

Returns the bundled LSP tool pack source.

lsp_tool_names()

@spec lsp_tool_names() :: [String.t()]

Returns the stable tool names owned by the bundled LSP pack.

read_only_source()

@spec read_only_source() :: {:bundle, :read_only_tools}

Returns the bundled read-only tool pack source.

read_only_tool_names()

@spec read_only_tool_names() :: [String.t()]

Returns the stable tool names owned by the bundled read-only pack.

reserved_names()

@spec reserved_names() :: [String.t()]

Returns all bundled tool names that remain reserved even if their pack is disabled.

reserved_source_for(name)

@spec reserved_source_for(String.t()) :: {:ok, source()} | :error

Returns the bundled source that owns a reserved tool name.