← Back to architecture

AI Foundation

cross-cutting layer · registry of the platform's AI resources

A single registry of the platform's AI resources: providers and their models, the tool catalog, and the neural networks' system prompt — plus their management: assigning models to system functions, chat and agent model lists, the spend aggregate. The ORM models live in the shared core (core), Admin gives them CRUD and screens, and the consumers — Harvester, Knowledge Store, Query Engine, Agent Engine — read the assignments from here, with no cycles between modules.

Architecture

Connections ai_providers key at-rest · connection status
Platform
built-in
OpenAI
key ••••
Anthropic
key ••••
+ slot
free
providers supply models ──▶
Model catalog ai_models
gpt-4ochat
gpt-4o-minichat
claudechat
o-serieschat
BGE-M3embed
Qwen3-0.6Bembed
chat embedding
Assignments model_assignments
embedding BGE-M3
RAG gpt-4o
Lists chat · agent
chat_models
gpt-4o claude
agent_models
claude o-series
Spend model_usage
tokens / day 1.2M
cost · budget in platform_settings $38
tools
tool catalog · open type registry
chat · available in chat
agents · available to agents
prompt_settings
system prompt · layered composition
safety org eng runtime
the registry stores · the runtimes execute Embeddings runtime · Tool-calling harness · read by Harvester · Knowledge Store · Query Engine · Agent Engine
API

Workzone Design

Detailed design decisions for the module.


Wireframes Surfaces

The module has no frontend of its own: the registry is managed by Admin Panel screens — → AI models (providers · models · assignments), → AI usage (spend by person and model, limits), → AI prompt (system prompt) and → AI tools (catalog and enablement).