Skip to content

How to manage agents

The Agent Library in the BAIA settings lists all agents. See How to set up an agent for how to open the library.

The agent library

The agent library

Agents in different states in the agent library

The library shows the following for each agent:

  • Name and Purpose: the name and the internal note of the agent.
  • Status: a switch that turns the agent Active or Inactive. An agent that has never been activated is shown as Draft.
  • Changes: when the agent has a proposal waiting for review, click Review changes to open it in PIM.
  • Confidence Score: how reliably the agent matches expectations, based on its evaluation samples. The score is green from 80%, orange from 65%, and red below that. No data is shown until the agent has run.
  • State: what the agent is doing right now.

Agent states

State Description
Draft The agent has been created, but it has not been activated. It cannot run in this state.
Scheduled The agent is active. It runs automatically, and you can also start a run manually.
Running The agent has a run in progress, which includes waiting for a review in PIM. No new runs start until the current one is finished.
Paused The agent is inactive. It does not start any runs until you turn it on again.

Start, pause, and resume an agent

  • To pause an agent, turn its Status switch off. A run in progress is finished, but no new runs are started.
  • To resume a paused agent, turn its Status switch on. The agent continues with the next batch of products in its filter.
  • To run an agent now, click Start run on the agent's row. This is available when the agent is Scheduled or Paused. If the agent is paused, it processes one batch and then stays paused.

An agent is paused automatically when a reviewer rejects a change in its sample. See How changes are reviewed. Look at the rejected changes and the reviewers' feedback in PIM, update the agent's instructions or rules, and then turn the agent on again.

When an agent stops

An active agent stops starting new runs when:

  • All products have been processed. An agent processes each product in its saved filter only once. When new products are added to the filter, the agent processes them on its next run.
  • The cost limit is reached. Runs wait and continue automatically when more budget is available. See Costs.
  • A review is pending. The agent waits for the reviewer to complete the review of its proposal in PIM before it continues.

If a product cannot be processed because of an unexpected error, it is skipped, and the rest of the run continues.

Delete an agent

Click the delete icon on the agent's row. Deleting an agent cannot be undone. If the agent has a run in progress, the run is cancelled, and any work it has not finished is discarded.

Changes that have already been applied to the product data in PIM are not affected when you delete an agent.