Skip to content

Latest commit

Β 

History

History
56 lines (38 loc) Β· 1.2 KB

File metadata and controls

56 lines (38 loc) Β· 1.2 KB

Tool Use β€” Functional Specification

Version: v1.2.3 | Status: Active | Last Updated: March 2026

Module: codomyrmex.tool_use
Status: Active

1. Overview

Tool Use Module

Registry, composition, and validation for tool-based workflows. Provides a central registry for managing tools, a chain abstraction for sequential tool pipelines, and input/output validation utilities.

2. Architecture

Source Files

File Purpose
chains.py Tool chain composition for sequential tool execution.
registry.py Tool registry for managing available tools.
validation.py Input/output validation for tool calls.

3. Dependencies

No internal Codomyrmex dependencies.

4. Public API

Exports (__all__)

  • ValidationResult
  • validate_input
  • validate_output
  • ToolEntry
  • ToolRegistry
  • tool
  • ChainStep
  • ChainResult
  • ToolChain

5. Testing

uv run python -m pytest src/codomyrmex/tests/ -k tool_use -v

All tests follow the Zero-Mock policy.

6. References