Debug a run

Find why a run failed or is waiting from its page, which shows its input, model calls, events and errors.

Before you start

You need a run. See Start a run.

Read a run

  1. Sign in to the CLI.
  2. Set PROJECT to your project's ID (Find your IDs): export PROJECT=<id>.
  3. List the project's runs, newest first:
    Shell
    npx veryfront project runs project-list --project-reference $PROJECT
  4. Set RUN_ID to the id of the run you want, from the list above: export RUN_ID=<id>.
  5. Get the run. It shows its status, input, output and usage. A failed run has an error with its code and message:
    Shell
    npx veryfront project runs get --run-id $RUN_ID
  6. List its request and model-call events, oldest first. You should now see AGENT_RUN_REQUEST_ENQUEUED first for an agent's run, and a MODEL_CALL_COMPLETED for each model call:
    Shell
    npx veryfront project runs events --run-id $RUN_ID --query '{"event_type":["AGENT_RUN_REQUEST_ENQUEUED","MODEL_CALL_COMPLETED"],"limit":100}'

Try it in a sandbox

  1. Set PROJECT

  2. Add the support agent

  3. Ask it a question

  4. Let the agent answer

  5. Wait for the answer

  6. List the runs

  7. Set RUN_ID

  8. Get the run

  9. Check it

Try it out

Next steps