adachsoft / agent-manager-tool
AI tool-call SPI adapter for agent management operations.
Requires
- php: ^8.3
- adachsoft/agent-manager-lib: ^0.1.0
- adachsoft/ai-tool-call: ^2.3
Requires (Dev)
- adachsoft/php-code-style: ^0.8.0
- friendsofphp/php-cs-fixer: ^3.95
- phpstan/phpstan: ^2.3
- phpunit/phpunit: ^13
- rector/rector: ^2.9
- symplify/phpstan-rules: ^14.19
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
adachsoft/agent-manager-tool adapts the public agent-management API to the AdachSoft AI tool-call SPI. It lets an AI tool-call host expose agent configuration operations through a single agent_manager tool.
Features
- Lists, retrieves, searches, creates, updates, deletes, and clones agent configurations.
- Provides built-in agent configuration examples.
- Exposes tool metadata and a JSON Schema for the supported actions.
- Creates the tool through an SPI-compatible factory backed by
AgentManagerInterface.
Installation
Install the package with Composer:
composer require adachsoft/agent-manager-tool
The package requires PHP 8.3 or newer and the related AdachSoft agent manager and AI tool-call SPI packages. Your application must provide an implementation of AdachSoft\AgentManagerLib\PublicApi\AgentManagerInterface.
Integration
Register AdachSoft\AgentManagerTool\Tool\AgentManagerToolFactory with the factory mechanism provided by your AI tool-call host. Construct the factory with your AgentManagerInterface implementation. The factory creates the SPI tool and its action handlers; it does not require per-instance configuration.
The tool is named agent_manager and accepts an action value from list, get, search, create, update, delete, examples, or clone. Actions that operate on a specific agent use the corresponding identifiers and payload described by the tool definition. See the usage examples for representative requests.
For host-specific factory registration and request execution details, follow the documentation for the AI tool-call host you use.
Requirements
- PHP 8.3 or newer.
- The related AdachSoft agent manager and AI tool-call SPI packages.
- An application-provided implementation of
AdachSoft\AgentManagerLib\PublicApi\AgentManagerInterface.
Usage
Create AgentManagerToolFactory with your AgentManagerInterface implementation and register it with your AI tool-call host. The resulting agent_manager tool accepts an action such as list, get, search, create, update, delete, examples, or clone. See the usage examples for request examples.