Skip to content

AI Layer

Quellverzeichnis: modules/ai-layer/

Provider-agnostische KI-Schicht (Prompts, Modelle, Guardrails) für Assistenz- und Analysefunktionen.

Geschäftslogik des Moduls (src/services/):

  • AgentAccessDeniedError
  • AgentService
  • AgentTaskNotFoundError
  • AgentTaskTerminalError
  • AiRegisterDuplicateError
  • AiRegisterEntryNotFoundError
  • ApprovalExpiredError
  • CommunicationConsentDeniedError
  • CommunicationEgressBlockedError
  • CommunicationService
  • ConversationNotFoundError
  • ConversationTerminalError
  • CopilotAccessDeniedError
  • CopilotService
  • EgressBlockedError
  • ForecastNotFoundError
  • ForecastService
  • GovernanceService
  • HelpBotService
  • HelpBotValidationError
  • HelpFeedbackNotFoundError
  • InsightNotFoundError
  • InsightService

Datenzugriffs-Ports (src/repositories/):

  • AgentTaskRepository
  • AiRegisterRepository
  • ContentGapLogRepository
  • ConversationRepository
  • ForecastRepository
  • HelpFeedbackRepository
  • InMemoryAgentTaskRepository
  • InMemoryAiRegisterRepository
  • InMemoryContentGapLogRepository
  • InMemoryConversationRepository
  • InMemoryForecastRepository
  • InMemoryHelpFeedbackRepository
  • InMemoryInsightRepository
  • InMemoryManualChunkRepository
  • InsightRepository
  • ManualChunkRepository

Vom Modul emittierte Ereignisse (src/events.ts):

  • AI_EVENT_TYPES
  • EventHandler
  • aiAgentHumanApprovalRequired
  • aiAgentTaskCompleted
  • aiAnomalyDetected
  • aiChurnRiskAlert
  • aiCommunicationSuggested
  • aiForecastUpdated
  • aiInsightGenerated
  • approvalDecisionPayload
  • helpContentGapLogged
  • helpFeedbackReceived
  • helpQueryAnswered

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

Ü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 ToolCall
  • AI_EVENT_TYPES
  • AgentAccessDeniedError
  • AgentService
  • AgentTask
  • AgentTaskNotFoundError
  • AgentTaskRepository
  • AgentTaskStatus
  • … und 240 weitere

Zurück zur Modul-Übersicht oder zur Startseite.