Search by

adachsoft / prompt-manager-tool

Arkadiusz Adach

AI tool-call SPI adapter for managing prompts with adachsoft/prompt-manager-lib

Package info

gitlab.com/a.adach/prompt-manager-tool

Issues

pkg:composer/adachsoft/prompt-manager-tool

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

v0.1.0 2026-11-23 04:40 UTC

This package is auto-updated.

Last update: 2026-11-23 03:40:47 UTC


README

An adapter that exposes adachsoft/prompt-manager-lib as an AI tool-call SPI tool named prompt_manager. It lets an AI client inspect and manage system prompts through a structured tool interface.

Requirements

  • PHP 8.3 or newer.
  • Composer.
  • An implementation of AdachSoft\\PromptManagerLib\\PublicApi\\PromptManagerInterface and an AI tool-call SPI integration.

Features

  • List, retrieve, create, update, and delete system prompts.
  • Retrieve the raw prompt template separately from the compiled prompt.
  • Apply targeted fragment edits and return a bounded unified diff.
  • Validate tool-call parameters and map prompt-manager failures to SPI exceptions.

Installation

Install the package with Composer:

composer require adachsoft/prompt-manager-tool

Usage

Provide an implementation of AdachSoft\PromptManagerLib\PublicApi\PromptManagerInterface and register AdachSoft\PromptManagerTool\Factory\PromptManagerToolFactory with your AI tool-call SPI integration. The factory creates the prompt_manager tool; the integration can then publish its tool definition and dispatch calls to it.

See the examples for supported calls and targeted edits.