AI Layer
AI Layer
Section titled “AI Layer”Quellverzeichnis: modules/ai-layer/
Provider-agnostische KI-Schicht (Prompts, Modelle, Guardrails) für Assistenz- und Analysefunktionen.
Services
Section titled “Services”Geschäftslogik des Moduls (src/services/):
AgentAccessDeniedErrorAgentServiceAgentTaskNotFoundErrorAgentTaskTerminalErrorAiRegisterDuplicateErrorAiRegisterEntryNotFoundErrorApprovalExpiredErrorCommunicationConsentDeniedErrorCommunicationEgressBlockedErrorCommunicationServiceConversationNotFoundErrorConversationTerminalErrorCopilotAccessDeniedErrorCopilotServiceEgressBlockedErrorForecastNotFoundErrorForecastServiceGovernanceServiceHelpBotServiceHelpBotValidationErrorHelpFeedbackNotFoundErrorInsightNotFoundErrorInsightService
Repositories
Section titled “Repositories”Datenzugriffs-Ports (src/repositories/):
AgentTaskRepositoryAiRegisterRepositoryContentGapLogRepositoryConversationRepositoryForecastRepositoryHelpFeedbackRepositoryInMemoryAgentTaskRepositoryInMemoryAiRegisterRepositoryInMemoryContentGapLogRepositoryInMemoryConversationRepositoryInMemoryForecastRepositoryInMemoryHelpFeedbackRepositoryInMemoryInsightRepositoryInMemoryManualChunkRepositoryInsightRepositoryManualChunkRepository
Domain Events
Section titled “Domain Events”Vom Modul emittierte Ereignisse (src/events.ts):
AI_EVENT_TYPESEventHandleraiAgentHumanApprovalRequiredaiAgentTaskCompletedaiAnomalyDetectedaiChurnRiskAlertaiCommunicationSuggestedaiForecastUpdatedaiInsightGeneratedapprovalDecisionPayloadhelpContentGapLoggedhelpFeedbackReceivedhelpQueryAnswered
API-Endpunkte
Section titled “API-Endpunkte”HTTP-Endpunkte unter api/routes/ai/ — Details in der API-Referenz.
| Methode | Pfad | Datei |
|---|---|---|
POST |
/v1/ai/agents/:agentType/invoke |
agents.ts |
GET |
/v1/ai/agents/status |
agents.ts |
GET |
/v1/ai/agents/tasks/:id |
agents.ts |
POST |
/v1/ai/agents/tasks/:id/approve |
agents.ts |
POST |
/v1/ai/agents/tasks/:id/cancel |
agents.ts |
GET |
/v1/ai/audit-log |
governance.ts |
POST |
/v1/ai/communication/suggest |
communication.ts |
POST |
/v1/ai/copilot/query |
copilot.ts |
GET |
/v1/ai/copilot/sessions |
copilot.ts |
POST |
/v1/ai/copilot/sessions |
copilot.ts |
GET |
/v1/ai/copilot/sessions/:id |
copilot.ts |
POST |
/v1/ai/copilot/sessions/:id/archive |
copilot.ts |
GET |
/v1/ai/forecast |
communication.ts |
POST |
/v1/ai/forecast |
communication.ts |
GET |
/v1/ai/forecasts |
communication.ts |
GET |
/v1/ai/help/content-gaps |
help-bot.ts |
POST |
/v1/ai/help/content-gaps/:id/resolve |
help-bot.ts |
GET |
/v1/ai/help/feedback |
help-bot.ts |
POST |
/v1/ai/help/feedback |
help-bot.ts |
POST |
/v1/ai/help/ingest |
help-bot.ts |
POST |
/v1/ai/help/query |
help-bot.ts |
GET |
/v1/ai/insights |
insights.ts |
POST |
/v1/ai/insights |
insights.ts |
POST |
/v1/ai/insights/:id/deactivate |
insights.ts |
GET |
/v1/ai/insights/:type |
insights.ts |
GET |
/v1/ai/insights/insight/:id |
insights.ts |
POST |
/v1/ai/listing/generate |
communication.ts |
GET |
/v1/ai/register |
governance.ts |
POST |
/v1/ai/register |
governance.ts |
GET |
/v1/ai/register/:id |
governance.ts |
POST |
/v1/ai/register/:id/deprecate |
governance.ts |
Public API
Section titled “Public API”Über den Modul-Index (src/index.ts) exportierte Symbole — die einzige erlaubte Zugriffsart von außen:
// AgentTask transitions canTransitionAgentTask// Aggregate Roots Conversation// Conversation transitions canTransitionConversation// DTOs - AI Register / Governance RegisterAiFeatureInput// DTOs - Agent InvokeAgentInput// DTOs - Audit Log ListAuditLogQuery// DTOs - Communication SuggestCommunicationInput// DTOs - Copilot StartConversationInput// DTOs - Forecast CreateForecastInput// DTOs - Insight GenerateInsightInput// EU AI Act Klassifikation AiActClassificationError// Enums - Agent AgentType// Enums - Communication CommunicationType// Enums - Conversation / Copilot ConversationStatus// Enums - Governance / EU AI Act AiRiskClass// Enums - Insight / Forecast InsightType// Enums - LLM / RAG LlmProvider// Hashing (Audit - PII-frei) sha256// HelpBot (M11-Erweiterung RAG Help Bot) ManualSourceType// PII / DLP Filter redactPii// Result Types AgentInvocationResult// Time Helpers now// Validations - Agent isValidAgentType// Validations - Common isValidTimestamp// Validations - Communication isValidCommunicationType// Validations - Composite isValidCitation// Validations - Conversation / Copilot isValidConversationStatus// Validations - Governance / EU AI Act isValidAiRiskClass// Validations - Insight / Forecast isValidInsightType// Validations - LLM / RAG isValidLlmProvider// Value Objects - Citation / Copilot Citation// Value Objects - Insight / Forecast / Communication / RAG InsightDetail// Value Objects - Tool / Approval ToolCallAI_EVENT_TYPESAgentAccessDeniedErrorAgentServiceAgentTaskAgentTaskNotFoundErrorAgentTaskRepositoryAgentTaskStatus- … und 240 weitere
Zurück zur Modul-Übersicht oder zur Startseite.