{
"tool_response": [
{
"type": "text",
"text": "{\n \"success\": true,\n \"doc\": {\n \"id\": 51,\n \"parent_id\": null,\n \"slug\": \"api\",\n \"path\": \"\/api\",\n \"title\": \"API\",\n \"description\": \"Interne PHP-Services und REST-Endpunkte für KI-Integration.\",\n \"content\": \"<nav class=\\\"breadcrumb\\\">\\n <a href=\\\"\/docs\\\">Dokumentation<\/a> » API\\n<\/nav>\\n\\n<h1>API<\/h1>\\n<p class=\\\"doc-meta\\\"><strong>Erstellt:<\/strong> 2025-12-20 | <strong>Aktualisiert:<\/strong> 2025-12-20<\/p>\\n\\n<p>Interne PHP-Services und REST-Endpunkte für KI-Integration.<\/p>\\n\\n<h2>Unterkapitel<\/h2>\\n<div class=\\\"docs-grid\\\">\\n <a href=\\\"\/docs\/api\/chat\\\" class=\\\"docs-card\\\">\\n <h3>Chat API<\/h3>\\n <p>RAG-Chat mit Vektorsuche und LLM-Integration<\/p>\\n <\/a>\\n\\n <a href=\\\"\/docs\/api\/tasks\\\" class=\\\"docs-card\\\">\\n <h3>Tasks API<\/h3>\\n <p>Task-Management, Zuweisungen, KI-Ausführung<\/p>\\n <\/a>\\n\\n <a href=\\\"\/docs\/api\/content\\\" class=\\\"docs-card\\\">\\n <h3>Content API<\/h3>\\n <p>Content-Aufträge erstellen und bearbeiten<\/p>\\n <\/a>\\n\\n <a href=\\\"\/docs\/api\/explorer\\\" class=\\\"docs-card\\\">\\n <h3>Explorer API<\/h3>\\n <p>Dokumente, Chunks, Taxonomie, Suche<\/p>\\n <\/a>\\n\\n <a href=\\\"\/docs\/api\/services\\\" class=\\\"docs-card\\\">\\n <h3>Services<\/h3>\\n <p>OllamaService, QdrantService, ClaudeService<\/p>\\n <\/a>\\n<\/div>\\n\\n<h2>Architektur<\/h2>\\n<p>Vollständig in PHP implementiert (Migration von Python zu nativen Services abgeschlossen):<\/p>\\n<pre><code>Browser (HTMX\/JS)\\n ↓\\nPHP Controller (\/src\/Controller\/)\\n ↓\\nPHP Services (\/src\/Infrastructure\/AI\/)\\n├── AIConfig.php (Config & Factory)\\n├── ChatService.php (RAG-Orchestrator)\\n├── OllamaService.php (Embeddings)\\n├── QdrantService.php (Vektorsuche)\\n└── ClaudeService.php (LLM)\\n ↓\\n┌─────────────┬─────────────┬─────────────┐\\n│ Ollama API │ Qdrant API │ Claude API │\\n│ :11434 │ :6333 │ anthropic │\\n└─────────────┴─────────────┴─────────────┘<\/code><\/pre>\\n\\n<h2>Endpunkte-Übersicht<\/h2>\\n\\n<h3>Chat API<\/h3>\\n<table>\\n <tr><th>Methode<\/th><th>Pfad<\/th><th>Beschreibung<\/th><\/tr>\\n <tr><td>POST<\/td><td>\/api\/v1\/chat<\/td><td>Chat-Nachricht senden<\/td><\/tr>\\n <tr><td>GET<\/td><td>\/api\/v1\/chat\/search<\/td><td>Vektorsuche<\/td><\/tr>\\n <tr><td>GET<\/td><td>\/api\/v1\/chat\/stats<\/td><td>Statistiken<\/td><\/tr>\\n<\/table>\\n\\n<h3>Tasks API<\/h3>\\n<table>\\n <tr><th>Methode<\/th><th>Pfad<\/th><th>Beschreibung<\/th><\/tr>\\n <tr><td>GET\/POST<\/td><td>\/api\/v1\/tasks<\/td><td>Tasks auflisten\/erstellen<\/td><\/tr>\\n <tr><td>GET\/PUT\/DELETE<\/td><td>\/api\/v1\/tasks\/{id}<\/td><td>Task-Details\/Update\/Löschen<\/td><\/tr>\\n <tr><td>POST<\/td><td>\/api\/v1\/tasks\/{id}\/execute<\/td><td>KI-Ausführung<\/td><\/tr>\\n<\/table>\\n\\n<h3>Content API<\/h3>\\n<table>\\n <tr><th>Methode<\/th><th>Pfad<\/th><th>Beschreibung<\/th><\/tr>\\n <tr><td>PUT<\/td><td>\/api\/v1\/content\/{id}<\/td><td>Auftrag aktualisieren<\/td><\/tr>\\n<\/table>\\n\\n<h3>Explorer API<\/h3>\\n<table>\\n <tr><th>Methode<\/th><th>Pfad<\/th><th>Beschreibung<\/th><\/tr>\\n <tr><td>GET<\/td><td>\/api\/v1\/explorer\/stats<\/td><td>Statistiken<\/td><\/tr>\\n <tr><td>GET<\/td><td>\/api\/v1\/explorer\/dokumente<\/td><td>Dokumente-Liste<\/td><\/tr>\\n <tr><td>GET<\/td><td>\/api\/v1\/explorer\/seiten<\/td><td>Seiten-Liste<\/td><\/tr>\\n <tr><td>GET<\/td><td>\/api\/v1\/explorer\/chunks<\/td><td>Chunks-Liste<\/td><\/tr>\\n <tr><td>GET<\/td><td>\/api\/v1\/explorer\/taxonomie<\/td><td>Taxonomie<\/td><\/tr>\\n <tr><td>GET<\/td><td>\/api\/v1\/explorer\/entities<\/td><td>Entities<\/td><\/tr>\\n <tr><td>POST<\/td><td>\/api\/v1\/explorer\/suche<\/td><td>Hybrid-Suche<\/td><\/tr>\\n<\/table>\\n\\n<h2>Services<\/h2>\\n<table>\\n <tr><th>Service<\/th><th>Pfad<\/th><th>Funktion<\/th><\/tr>\\n <tr><td>AIConfig<\/td><td>\/src\/Infrastructure\/AI\/AIConfig.php<\/td><td>Config & Factory<\/td><\/tr>\\n <tr><td>ChatService<\/td><td>\/src\/Infrastructure\/AI\/ChatService.php<\/td><td>RAG-Orchestrator<\/td><\/tr>\\n <tr><td>OllamaService<\/td><td>\/src\/Infrastructure\/AI\/OllamaService.php<\/td><td>Embeddings & LLM<\/td><\/tr>\\n <tr><td>QdrantService<\/td><td>\/src\/Infrastructure\/AI\/QdrantService.php<\/td><td>Vektorsuche<\/td><\/tr>\\n <tr><td>ClaudeService<\/td><td>\/src\/Infrastructure\/AI\/ClaudeService.php<\/td><td>LLM-Antworten<\/td><\/tr>\\n<\/table>\",\n \"status\": \"published\",\n \"sort_order\": 7,\n \"depth\": 0,\n \"created_at\": \"2025-12-20T11:13:58\",\n \"updated_at\": \"2025-12-27T15:58:19\"\n },\n \"children\": [\n {\n \"id\": 52,\n \"parent_id\": 51,\n \"path\": \"\/api\/chat\",\n \"title\": \"Chat-API\",\n \"status\": \"published\",\n \"depth\": 1\n },\n {\n \"id\": 53,\n \"parent_id\": 51,\n \"path\": \"\/api\/content\",\n \"title\": \"Content-API\",\n \"status\": \"published\",\n \"depth\": 1\n },\n {\n \"id\": 78,\n \"parent_id\": 51,\n \"path\": \"\/api\/tasks\",\n \"title\": \"Tasks API\",\n \"status\": \"published\",\n \"depth\": 1\n },\n {\n \"id\": 54,\n \"parent_id\": 51,\n \"path\": \"\/api\/services\",\n \"title\": \"AI-Services\",\n \"status\": \"published\",\n \"depth\": 1\n },\n {\n \"id\": 79,\n \"parent_id\": 51,\n \"path\": \"\/api\/explorer\",\n \"title\": \"Explorer API\",\n \"status\": \"published\",\n \"depth\": 1\n }\n ]\n}"
}
]
}