How AI agents work
This page explains the ideas behind Custodian Agents in plain English. You don't need any AI background.
The model: a very good text predictor
At the heart of every agent is a large language model (LLM), such as GPT-6 Luna or Claude. You give it text and it writes a reply. It learned language from a huge amount of public text, so it can answer questions, summarize, draft and reason.
On its own, a model has three limits:
- It doesn't know your business. It has never seen your handbook, your product or your customers.
- It doesn't know what happened recently. Its knowledge stops at the date it was trained.
- It has no memory. Each request starts from nothing unless you send the earlier conversation along.
An agent wraps a model with the pieces that fix those limits.
The agent: a model with a job description
A Custodian Agent is a model plus everything it needs to do one job well:
| Piece | Plain-English meaning | Fixes |
|---|---|---|
| System prompt | The job description. "You are a support agent for Acme. Be brief and friendly." | Gives it a role and rules |
| Examples | A few sample questions with ideal answers, so it copies the style. | Inconsistent format |
| Data sources | Your files. The agent looks things up in them before answering. See Data sources and RAG. | Doesn't know your business |
| Tools | Abilities like searching the web. See Built-in tools. | Doesn't know recent events |
| Session | The conversation so far, kept for you. See Chat sessions. | No memory |
| Privacy | Personal details are sanitized before the model sees them, and the reply is rehydrated. See Private agent. | Data leaking to the model provider |
What happens when someone sends a message
1. User: "What's our refund window?"
2. Custodian adds the system prompt, examples and earlier messages
3. If the agent has files, it finds the most relevant passages
4. If privacy is on, personal details are sanitized
5. The model writes a reply, calling tools if it needs them
6. If privacy is on, the reply is rehydrated with the real details, then goes back to the user
All of this runs on the Custodian platform. You don't host anything.
Deploy: from configuration to a live app
When you call deploy(), Custodian turns your configuration into a live app. An
app has:
- A chat endpoint, so your own software can talk to it.
- A share link, a ready-made chat page you can send to anyone.
- An entry in My AIs, where you manage it. See Share and chat.
One agent or several?
One agent is enough for most jobs. When different questions need very different instructions or files, you can put several agents behind one app. That's called multi-agent. See Multi-agent routing.
Key terms
| Term | Meaning |
|---|---|
| LLM | Large language model. The AI that reads and writes text. |
| Prompt | The text sent to the model. The system prompt is the standing instruction. |
| Token | A chunk of text, roughly ¾ of a word. Model usage is counted in tokens. |
| RAG | Retrieval-augmented generation. Looking things up in your files before answering. |
| Tool | An action the model can ask for, such as a web search. |
| Session | One conversation, so the agent remembers earlier messages. |
| Squad | Several agents deployed behind one app. |