Aller au contenu
Agentivity
Star on GitHub Commencer gratuitement

Run an agent and read its answer

Ce contenu n’est pas encore disponible dans votre langue.

Running an agent alone is the fastest way to test it: you give it a task, you read the answer, you adjust the instructions, you try again.

  • An agent with a model and instructions, published. See Create an agent.
  • A model connection that works. Each execution uses the AI model, and your provider bills you for it.
  1. Open Studio > Agents and open the agent.

  2. In the switch at the top, select Execution. The panel on the right asks “What would you like the agent to do?”

  3. In the field Describe the task for the agent…, type the task. For the Reminder Writer:

    Customer: Northgate Bakery. Invoice INV-2041, 1,250 euros, due on 15 September. Write the reminder.
  4. Send it.

The answer arrives in the same panel, as it is written.

If the agent has a channel, it can stop and ask you something. The field at the bottom then says Type your response… Type your answer and send it. See Let an agent ask a person before it decides.

The panel has buttons to Pause run, Resume run and Cancel run. Pause run shows while the execution runs, and Resume run only once you paused it: it undoes your pause. An execution that waits for a person is not paused: you answer it, there is no Resume run to select. After an execution, it also has Run again and Reset.

Below the canvas, three tabs show the execution:

TabWhat it shows
InspectorThe steps of the execution. Select a step to see its inputs, its outputs and its logs.
ErrorsWhat went wrong. When all is well, it says “No runtime errors detected.”
LogsThe technical record of the execution.
  1. Read the answer as the person who will receive it.
  2. Go back to Editor, in the switch at the top, and change the instructions.
  3. Select Publish.
  4. Go to Execution and give the same task again.

Change one thing at a time. You then know which change improved the answer.

The section Executions, in the menu on the left, lists the executions of your whole workspace, with their state. See Run a workflow and follow each step for what this page shows.

  • The panel shows the answer of the agent.
  • The tab Errors says “No runtime errors detected.”

Put the agent in a team: Create a team of agents.