Skip to main content
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
Run it with 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.
This example leaves AgentOS authorization disabled. Callers can supply their own user and session identifiers. Enable AgentOS authorization before network exposure, and connect SQLTools with a database role that enforces read-only access.

Shared learnings, separate sessions

Share diagnosed warehouse corrections across the team while keeping conversation threads scoped by user_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".
The store runs in 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.

Next steps

Developer Resources