itomig ai base – Foundational AI integration for iTop
The itomig ai base extension adds a clean, provider agnostic layer that brings generative AI capabilities into iTop. It abstracts the communication with multiple LLM and embedding providers (Mistral, OpenAI & compatible services, Ollama, Anthropic) behind one unified PHP API.
Key features
• Unified API for all supported AI engines – configure provider, API key, endpoint and model in itop-config.php
• Tool calling / function calling (new in 26.3.0) – let the model request structured function calls. This is the basis for agentic workflows.
• Embeddings (new in 26.3.0)
• Multi turn conversations – conversation context is kept across turns instead of single shot prompts.
• System prompt management – built in prompts for common tasks (translation, text improvement, generic Q&A) plus your own custom prompts
• Security by default – hardened prompt injection protection (system message filtering, whitelist mechanism) and a guardrail plug-in hook that allows a separate filter extension to screen AI input and output on defined surfaces.
• Response processing – helper utilities that clean JSON, strip HTML and remove reasoning (think) tags.
Developer friendly – the extension is deliberately minimal: it supplies the core engine handling, prompt management and the plug-in hooks, and leaves room for you to build your own AI driven features on top of it. A complete tutorial showing how to create an AI powered OQL explanation feature is available on GitHub.
Note: Requires iTop >=3.2.1 and PHP >= 8.2 (PHP 8.1 is not supported)
Are you sure you want to perform this action?