Search by

adachsoft / workflow-tool

Arkadiusz Adach

AI-callable tools for managing and running workflows in AiDevTeam applications.

Package info

gitlab.com/a.adach/workflow-tool

Issues

pkg:composer/adachsoft/workflow-tool

Statistics

Installs: 16

Dependents: 0

Suggesters: 0

Stars: 0

v0.1.0 2026-11-27 07:14 UTC

This package is auto-updated.

Last update: 2026-11-27 06:15:13 UTC


README

Workflow Tool provides AI-callable tools for managing and running workflows in AiDevTeam applications. It connects workflow definitions and execution services to the adachsoft/ai-tool-call tool interface.

Requirements

  • PHP 8.3 or later.
  • Composer.

Features

  • List workflows and registered step types.
  • Read and describe workflow definitions, including the input schema needed to run them.
  • Create and update workflow definitions with validation.
  • Run workflows directly or in the context of a project.
  • Expose these operations through tool factories compatible with the AiToolCall SPI.

Installation

Install the package with Composer:

composer require adachsoft/workflow-tool

Usage

Provide the workflow repository, step registry, and runner services from your application when constructing the relevant tool factory. The manager factory also needs a workflow-definition JSON mapper. Register the resulting factories with the AiToolCall integration used by your application.

use AdachSoft\WorkflowDefinitionRepositoryJson\Mapper\WorkflowDefinitionJsonMapper;
use AdachSoft\WorkflowTool\Manager\WorkflowManagerToolFactory;
use AdachSoft\WorkflowTool\Runner\ProjectWorkflowRunnerToolFactory;
use AdachSoft\WorkflowTool\Runner\WorkflowRunnerToolFactory;

$managerFactory = new WorkflowManagerToolFactory(
    $workflowDefinitionRepository,
    $stepRegistry,
    new WorkflowDefinitionJsonMapper(),
);

$runnerFactory = new WorkflowRunnerToolFactory(
    $workflowDefinitionRepository,
    $workflowRunner,
    $stepRegistry,
);

$projectRunnerFactory = new ProjectWorkflowRunnerToolFactory(
    $workflowDefinitionRepository,
    $workflowRunner,
    $stepRegistry,
);

// Register the factories with your AiToolCall tool registry.

See the examples for the available tools and their intended use.