agentic_fabric.tools.registry

Tool resolution helpers for configured fabric agent tools.

This module turns YAML-declared tool names into instantiated tool objects without forcing every optional dependency to import at module load time.

Module Contents

Functions

register_tool_factory

Register a safe tool factory without using dynamic imports.

resolve_tool

Resolve a configured tool name to an instantiated tool object.

resolve_tools

Resolve configured tool names to instantiated tool objects.

Data

API

agentic_fabric.tools.registry.logger = 'getLogger(...)'
agentic_fabric.tools.registry.ToolFactory = None
agentic_fabric.tools.registry.register_tool_factory(tool_name: str, factory: agentic_fabric.tools.registry.ToolFactory, *, aliases: tuple[str, ...] = ()) None

Register a safe tool factory without using dynamic imports.

agentic_fabric.tools.registry.resolve_tool(tool_name: str) Any | None

Resolve a configured tool name to an instantiated tool object.

Supports:

  • built-in aliases like FileWriteTool

  • selected filesystem MCP URIs

  • fully-qualified module:attribute references

  • fully-qualified package.module.ClassName references

agentic_fabric.tools.registry.resolve_tools(tool_names: list[str]) list[Any]

Resolve configured tool names to instantiated tool objects.

Unknown or unavailable tools are skipped with a warning so that fabric agents can continue to run with the capabilities available in the current environment.