MONARC Copilot is a FrontOffice module that adds a copilot endpoint and supporting services for contextual guidance inside MONARC ANR workflows.
- 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.
- PHP 8.1+
- Composer
- MONARC FrontOffice 2.13+
composer require monarc-project/monarc-copilotEnable the module in your MONARC application and ensure the package config is merged.
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
Install dependencies:
composer installRun tests:
vendor/bin/phpunitThis project is licensed under AGPL-3.0-or-later. See LICENSE.