This map covers the primary entities used across runtime, governance, and KB integration.
DeveloperAccount- Developer identity and organization membership/role.
Organization- Tenant boundary for apps and provider profiles.
OrganizationInvitation- Membership invitation flow.
OrganizationLLMProviderProfile- Shared LLM credentials/model profile used by app configs.
App- Per-product container for config, keys, functions, playbooks, sessions.
ApiKey- App-scoped SDK auth credentials.
AgentConfig- App assistant behavior and runtime settings:
- prompts
- model limits
- scope mode
- profile binding
- App assistant behavior and runtime settings:
RegisteredFunction- SDK function schemas and runtime eligibility metadata.
Playbook- Structured workflow definition.
PlaybookFunction- Ordered relation between playbook and registered functions.
ChatSession- Session lifecycle and context payloads:
client_contextllm_contextavailable_function_names
- Session lifecycle and context payloads:
Message- Ordered conversation records (user/assistant/tool).
WSTicket- One-time WS auth ticket.
AuditEvent- Structured audit log entries for config/management actions.
KnowledgeBaseRef- Local record mapping org-scoped external KB ID.
AppKnowledgeBase- App-to-KB assignment join table.
agent does not store KB documents/chunks directly.
OrganizationEmbeddingProfile- Embedding model/provider credential profile.
KnowledgeBase- KB metadata + embedding runtime state.
KnowledgeSource- Source definitions (
url/upload) and crawl state.
- Source definitions (
KnowledgeDocument- Normalized crawled/uploaded documents.
KnowledgeChunk- Chunked content + embedding vectors.
KnowledgeIngestionJob- Async ingestion/regeneration job tracking.
- App config in
agentselects LLM profile inagentDB. - KB data lives in
knowledge_basesDB; app-level assignments live inagent. agentcallsknowledge_basesAPIs and syncs local reference tables.
agentmodels:agent/modelsknowledge_basesmodels:knowledge_bases/models.py