Python SDK Overview
custodian-labs deploys Custodian Agents and multi-agent squads backed by your
own data, with PII masking built in. Same backend as the
TypeScript SDK; shared concepts in
SDKs Overview.
pip install custodian-labs
from custodian_labs import Custodian
app = Custodian(model="gpt-4o", system_prompt="You are a helpful support agent.").deploy()
print(app.chat("How do I reset my password?").response)
Two ways to build one
| Approach | Use when |
|---|---|
Custodian class | Full control; add examples, files, tools, then .deploy(). |
CustodianBuilder | The same, as a fluent chain. |
Both return an App. app.chat() retains the session for you.
Run an example
- custodian-labs-python-examples — runnable scripts on GitHub
- Open in Google Colab — agents, RAG, and multi-agent in one notebook
Next
Installation · Authentication · Data Sources & RAG · Multi-Agent Squads · Guardian Layer client