monarc / copilot
MONARC Copilot module for FrontOffice
v0.1.0
2026-04-23 14:33 UTC
Requires
- php: ^8.1
- ext-curl: *
- ext-json: *
- ext-pdo: *
- laminas/laminas-mvc: ^3.6
- laminas/laminas-mvc-middleware: ^2.2
- laminas/laminas-permissions-rbac: ^3.0
- monarc/frontoffice: ^2.13
Requires (Dev)
- laminas/laminas-test: ^4.11
- phpunit/phpunit: ^10.5
README
MONARC Copilot is a FrontOffice module that adds a copilot endpoint and supporting services for contextual guidance inside MONARC ANR workflows.
Features
- Provides a copilot API route under the FrontOffice ANR API.
- Builds contextual answers from ANR workflow state and selected objects or risks.
- Supports optional response refinement through an Ollama-compatible or OpenAI-style chat endpoint.
Requirements
- PHP 8.1+
- Composer
- MONARC FrontOffice 2.13+
Installation
composer require monarc-project/monarc-copilot
Enable the module in your MONARC application and ensure the package config is merged.
Configuration
The module exposes a copilot config section in config/module.config.php.
Example options:
copilot.maxRecommendationscopilot.maxSourcescopilot.ollama.enabledcopilot.ollama.transportcopilot.ollama.baseUrlcopilot.ollama.endpointPathcopilot.ollama.modelcopilot.ollama.jsonModecopilot.ollama.timeout
Development
Install dependencies:
composer install
Run tests:
vendor/bin/phpunit
License
This project is licensed under AGPL-3.0-or-later. See LICENSE.