AgentOS exposes the data agent through a FastAPI application. Slack, BI dashboards, scheduled jobs, and product widgets can call the same agent endpoint.
data_agent.py
python data_agent.py. The app="data_agent:app" import string has to match the module name. Every surface then calls the same endpoint:
Where to use a data agent
Data agents use the same serving model as product agents.
user_id and session_id select the conversation history for a run.
Shared learnings, separate sessions
Share diagnosed warehouse corrections across the team while keeping conversation threads scoped byuser_id and session_id. learning=True enables the per-user profile and memory stores. To share corrections, pass a knowledge base to LearningMachine. This enables the Learned Knowledge store, whose namespace defaults to "global".
AGENTIC mode: the model decides when to call save_learning and search_learnings. To keep learnings inside one team or tenant, set namespace on LearningMachine.