monarc/copilot

MONARC Copilot module for FrontOffice

Maintainers

Package info

github.com/monarc-project/monarc-copilot

pkg:composer/monarc/copilot

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.1.0 2026-04-23 14:33 UTC

This package is auto-updated.

Last update: 2026-04-23 14:49:26 UTC


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.maxRecommendations
  • copilot.maxSources
  • copilot.ollama.enabled
  • copilot.ollama.transport
  • copilot.ollama.baseUrl
  • copilot.ollama.endpointPath
  • copilot.ollama.model
  • copilot.ollama.jsonMode
  • copilot.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.