gistigo

Summary in English

How to Test Your Agents on Real Tasks With Harbor - Xander Song, Arize AI

ChannelAI Engineer (opens YouTube)
Video
56 min
On YouTube since

Introduction

Xander Song from Arize AI presents Harbor, a framework for evaluating AI agents in isolated sandbox environments. The tool enables an objective assessment of agent effectiveness by verifying intended side effects in real-world tasks.

Key takeaways 5

The gist of the content in a few sentences

  • The agent is launched in a fresh Docker container, and specialized verifiers check for environmental side effects rather than analyzing the specific path taken to reach the goal.
  • Using scripts with pre-defined solutions allows for the elimination of pipeline errors in the testing process before spending costly LLM tokens.
  • Due to the stochastic nature of LLM models, the system calculates the probability of success over a specific number of attempts for each task.
  • Combining these tools enables experiment mapping and the conversion of action trajectories into the OpenInference open standard.
  • Trajectory analysis in Harbor helped reduce the number of turns by replacing API pagination with direct SQL queries.
Video chapters 34Click and the video will play from the selected moment

Summary

First 3 of 34 parts

Harbor framework: concept and operation

Xander Song, an engineer at Arize AI, describes Harbor as a tool for evaluating agents on real-world tasks using actual data in isolated sandbox environments. The main goal of this solution is to make decisions based on evidence rather than subjective feelings, allowing for faster and more confident iteration of prompts, tools, and agent skills.

The framework operates by defining realistic tasks as natural language instructions. The agent is launched in a fresh sandbox environment with data relevant to the specific task, and specialized verifiers then check whether the agent produced the intended side effects within that environment. The result of the verifiers' operation is a reward, which can take a binary form, such as a 0-1 result or a pass/fail status.

According to the speaker, the strength of this approach lies in the ability to maintain constant tasks and verifiers while changing the agent's implementation. This allows for a quick signal on whether a change caused an improvement or regression in a specific task. The ability to combine many such tasks allows for broad coverage of the agent's capabilities and closes the iteration loop with a high degree of certainty.

Task and environment architecture

Regarding architectural details, each task in the framework specifies a set of instructions passed to the agent as a markdown file. This is simply a piece of natural language text that serves as guidelines for the agent.

Another element of the task is the description of the environment in which the agent is to operate, which usually takes the form of a Dockerfile. This file contains the data relevant to the execution of the given task.

Architecture and testing process in Harbor

Each task in the Harbor system consists of instructions in a markdown file and a description of the runtime environment, usually in the form of a Docker file. This environment contains data relevant to the specific task, while the tool remains agnostic to the type of data provided—examples include SQLite files or git repositories at a specific commit. To assess correctness, verifiers are defined in the test directory; these are scripts that check whether the intended side effect occurred after the agent finished its work.

Tasks are grouped into datasets, and a specific number of attempts can be configured for each. This is necessary because agents based on LLM models are stochastic, meaning they do not behave identically every time they are run. Each attempt involves building a fresh Docker container with the appropriate data, into which the selected agent is introduced. After the instructions are executed and side effects are triggered in the environment (e.g., changes to source files or the database), the verifiers are run, and their results, in the form of rewards, are saved in a reward.ext file.

Optionally, agents can generate so-called trajectories in ATIF (Agent Trajectory Interchange Format). This is Harbor's specification for a JSON-based tracking format, which provides insight into the internal steps taken by the agent to achieve the effect. This is primarily used for debugging and logging. The entire process—from launching tasks from a dataset, through multiple attempts and verification, to collecting trajectories—is called a job.

Read the full summary – for free

31 parts of text left, key takeaways, facts, questions and answers, action items – with the source minute for every passage. Plus search, collections and the AI assistant.

Keep reading for free

Free, in a minute. Have an account? Log in

Free account

Read them in full – for free

  • 2 649 summaries in full – the gist, chapters, facts and takeaways
  • Full-text search, collections and an AI chat about every video
  • New videos from your channels summarized automatically, with an email notification