The Agent Builder is the assistant in the left pane of the Playground. It reads your agent's program and, when you allow it, edits it for you. The mode you pick before sending a message decides what the builder may do with it: change the agent, only answer questions, or investigate and propose a plan.
#The three modes
| Mode | What the builder does | Changes the agent? | Use it when |
|---|---|---|---|
| Build | Edits the agent and keeps the edits as unsaved changes. Validates the program and tests the change itself. Never pushes and never makes anything live. | Yes, as unsaved changes | You know what should change |
| Ask | Answers questions about the agent, the conversation you have open and its reasoning. | No | You want to understand what the agent does, or why it did something |
| Plan | Investigates, asks you questions, and proposes an ordered plan that you can hand to Build. | No, until you hand the plan to Build | The change is large, touches several rules, or you are not sure what it involves |
#Pick a mode
- Click the mode button in the builder's composer. It shows the current mode, for example Build.
- Choose Build, Ask or Plan from the Mode menu.
You can also type / in an empty composer and choose Switch to Ask (or Build, or Plan). A new session starts in Build mode.
The Thinking switch beside the mode button lets the builder reason before it acts: better on hard problems, slower on simple ones. Each mode starts with its own default, on for Build and Plan and off for Ask, and you can change it for any message.
#Ask mode
Ask mode is read-only, so it is safe to use on any agent. The builder sees the agent's program, the conversation open in the Apollo-1 Runtime pane, and the turn shown in the Reasoning pane, so you can refer to them directly. For example:
- "What can this agent do?"
- "Where did it get these flights from?"
- "Why didn't it charge a change fee on this turn?"
- "Which rules decide whether a cancellation is refundable?"
To ask about one particular reply, click Reasoning under it. The builder then knows which turn you mean, so you can ask about it directly. See Ask the builder about a turn.
#Plan mode
In Plan mode the builder reads what it needs, asks you about anything unclear on question cards, and then shows a Build plan card: a short summary and numbered steps.
- If the plan is right, click Build this. The builder switches to Build and carries out the plan, showing how many steps are done.
- If it is not, say what to change in the composer and the builder revises the plan.
- If the builder stops with steps still open, the plan shows Waiting for you. Reply in the composer to continue.
Plan is the default when you create a new agent, and a good choice for changes such as a new fee structure or a new integration, where you want to agree on the approach before anything is edited.
#Build mode
In Build mode the builder edits the agent, checks that the program is still valid, and runs small, targeted tests of that change by itself, such as a live test conversation; see Regressions and evaluations. Its edits appear as Unsaved changes: your own Playground conversations run against them, but nothing is saved to the branch until you push. See Change your agent's behavior for a full example, and Unsaved changes and Push.
#If your role cannot change the agent
Build and Plan still appear in the menu, but choosing one shows a notice that changing the agent is not part of your role, and the builder stays in Ask. You can still ask the builder anything about the agent. An organization administrator can change your role; see Members and roles.