Knowledge Portal · engineering documentation

Skip to content

Federated from workspace · PRD-000 · zaixos-company-platform/app/Modules/AI/README.md Do not edit canonical truth here — update the source repo, then re-run npm run docs:sync.


AI

PL-003 compatibility adapters for PRD-000.

Status: WP-PRD000-04 — AI Conversation Gateway @ v0.4.0-ai

Responsibilities

ComponentRole
AiGatewayContractSole product gateway for PL-003 access
AiProviderGatewayAdapterDelegates completions to PL-003 ProviderGateway
DiscoveryConversationOrchestratorWraps frozen DiscoveryFlowService via container extend
DiscoveryStructuredResponseParserParses structured JSON discovery responses

Configuration

Consumer overrides live in config/ai.php:

KeyPurpose
AI_DISCOVERY_ENABLEDEnable AI-enhanced discovery prompts
AI_DISCOVERY_PROVIDERProvider key (defaults to AI_DEFAULT_PROVIDER)
AI_DISCOVERY_MODELModel key for discovery completions

When discovery AI is disabled or the provider is unavailable, the orchestrator falls back to the rule-based discovery engine automatically.

Boundaries

  • No direct OpenAI, Anthropic, Gemini, or Groq SDK imports in PRD-000
  • Discovery module is frozen — integration uses Laravel container extend() only
  • All LLM traffic routes through AiGatewayContractAiProviderGatewayAdapter → PL-003

Tests

bash
php artisan test --filter=Ai
php artisan test --testsuite=Architecture --filter=Ai

ZAIXOS Knowledge Portal — public engineering docs at /docs · Staff operations at /admin