Agent
An agent is who does work for the org, as it is set up: its role, its guidance, its rules, the connectors it may use and its kinds of work.
It is a definition, kept as a file. It does not run, hold state or have access by itself. When a piece of work is opened, the platform runs the agent on it, for one person.
Why it exists
A team's process has roles: someone gathers the package, someone analyses it, someone talks to lenders. An agent is one of those roles, written down. Writing it as a role, not as one long prompt per task, lets one definition do several jobs with the same judgement, connectors and budget.
An example
name: credit-analyst
role: The team's credit analyst. You turn a request's documents into its figures of record.
description: Writes the credit memo and answers focused financial questions.
guidance: |
Work from the original documents. Prefer the latest signed source for a fact.
rules:
- Never state a figure without its source.
- Say what is missing and what it affects. Do not fill a gap.
model: {primary: work}
tools: [credit-calc]
budget: {inputTokens: 1000000, outputTokens: 300000}
works:
credit-memo:
objective: Produce the supported credit memo from the documents available.
procedure: |
Start from the brief and the original documents in the project's folder.
Calculate coverage, leverage and sources and uses with the calculator.
outcome:
file: {file: credit-memo.md, template: credit-memo, standards: credit-memo-standards}
fields:
loanAmount: {type: number}
recommendation: {type: choice, choices: [proceed, decline, more-information]}
How it works
What an agent is made of
Everything here is written for the model to read. The platform tells the agent; it does not check. What the platform checks is a policy.
| Part | In the file | What it is |
|---|---|---|
| Role | role | Who the agent is and what it answers for. The first thing the model reads, in all its work |
| Guidance | guidance | What it should know and how it should go about things, in all its work |
| Rule | rules | A line it is told to keep to. The model reads it and nothing checks it |
| Connectors | tools | The connectors it may use. It has no others |
| Model | model | What its model is for. Never a provider |
| Budget | budget | The most it may spend on one piece of work |
| Kinds of work | works | Each kind of work it does |
A rule is not a policy
A rule is a sentence the agent is told. It shapes how the agent works, and nothing holds the agent to it. To have the platform ask for approval, send something back or hide a value, apply a policy.
The platform's own agents
Three agents are built from an org's settings, not from a file:
They are agents like any other: the same policies, the same record, the same budget.
Versions
Every save is a new version, never changed afterwards. A piece of work keeps the exact definition it ran with, so what ran can be read back as it was however the agent has changed since.
What an agent hands in
An agent hands in the fields its kind of work names, and the platform checks them against that shape before anyone sees them. A deliverable is written to be read in place: a summary, then values one level deep, a table only where the data is a table, and long text as a file.
States
None. An agent is a definition, so it is never working or waiting. A thread of it is.
What always holds
- An agent holds no credential. The org's AI gateway presents one at the moment of a call.
- An agent never names a model. It says what the model is for.
- An agent has only the connectors it was given.
- A piece of work keeps the definition it ran with.
- An agent acts for a person. With what that person and the agent may both do, never more.