Using the agent
Ask AI on a cell, plan cells in the ByteRun Agent panel, share table names with it, and review every change before it lands.
The assistant never changes your notebook on its own. It proposes, and you accept or reject. This page covers the two places you use it. To set up a provider first, see connect a provider.
Ask AI on a cell
Choose Ask AI on a cell to open a bar below it and describe the change you want. If the cell has output, Include output is ticked by default, so the assistant can see an error or a result; untick it to leave the output out of the request.
When a cell fails, its error output has two buttons. Fix error asks for a corrected version of the cell, and Explain asks what went wrong. Either way the answer comes back on the cell for review, as below.
When the answer arrives it is shown against the cell for review:
| Button | What it does |
|---|---|
| Accept | Applies the change to the cell. Nothing is run. |
| Accept and run | Applies the change and runs the cell. Offered for code cells. |
| Reject | Discards the proposal. The cell is unchanged. |
A proposal stays on the cell until you settle it, even if you reload the page. If you ask again about the same cell, the newer proposal replaces the older one, which is marked Replaced by a newer proposal. Each change also shows afterward whether it was applied or rejected.
People who can only view a project see the proposal but cannot apply it: the panel says You have read access, so you cannot apply this change.
The ByteRun Agent panel
Open ByteRun Agent from the Studio for questions about the whole notebook. Answers stream in as they are written. Your conversation is kept with the project, so collapsing the panel or reloading the page loses nothing. New conversation starts a fresh one.
In a long conversation the agent sees only the most recent messages. A line, Earlier messages are not sent to the agent, marks where the older ones stop.
Quick actions
With a notebook that has content, the panel suggests Explain this code, Fix the error, Improve performance and What does this notebook do?.
With an empty notebook it suggests ways to start: Explore a CSV from this project, Build a baseline model, Write a SQL query and What can you help me with?. The first two answer with a plan of cells built on the files in your project.
Plan cells
Turn on Plan cells under the message box, and your next message is answered with a plan: a list of cells to add rather than a text answer.
- Each step has a checkbox. Untick the ones you do not want.
- Add these cells (or Add N cells, if you unticked some) puts them in the notebook.
- Dismiss throws the plan away.
The cells are added but nothing is run; read them, then run them yourself. A plan that is superseded by a newer one is marked Replaced by a newer plan.
Tell the agent about your tables
If your project has data connections, each one appears as a button under the message box. Switch one on and the agent is told which tables and columns it has. After you send, a card confirms what was shared:
Data given to the agent — the connection and how many tables. Table and column names and types only. Host, credentials and rows are never sent.
That makes it possible to ask for a SQL query against your warehouse without pasting the schema in yourself. Your rows stay where they are.
Good to know
- The assistant can be wrong. Read what it wrote before you run it, especially anything that deletes data or spends money.
- What you put in a cell, an output or a message can be sent to your chosen provider, under your own key. Don't print secrets into cell output.
- In the playground the agent gives canned demo answers. Sign up to use the real one.
- Use is covered by the acceptable use policy.