Notebooks
A
Arize AI
Agno Agent For Evals

Agno Agent For Evals

agentsquickstartsllmsLlamaIndexarize-phoenixopenaitutorialsevalsllmopsai-monitoringaiengineeringprompt-engineeringdatasetsllm-evalai-observabilityllm-evaluationsmolagentsanthropiclangchain

Open In Colab

phoenix logo
Docs | GitHub | Community

Agno Travel Agent Tracing Project

We will create a simple travel agent powered by the Agno framework and OpenAI models. We’ll begin by installing the necessary OpenInference packages and setting up tracing with Arize.

Next, we’ll define a set of basic tools that provide destination information, estimate trip budgets, and suggest local activities.

For this base agent, we’ll build and run our agent, viewing the resulting trace outputs in Phoenix to understand how the agent uses its tools and reasoning.

We'll then follow along through the Evals Tutorials:

  • Configure a core LLM & run a built in eval
  • Configure a custom endpoint LLM
  • Create a custom eval
  • Code Evals

You will need to install Arize Phoenix in your terminal (pip install arize-phoenix) an OpenAI API key, and a free Tavily API Key.

Ensure you have phoenix serve running in your terminal prior to running the following cells.

Set up keys and dependenies

[ ]
[ ]

Setup tracing

[ ]

Define tools

First, we’ll define a few helper functions to support our tools. In particular, we’ll use Tavily Search to help the tools gather general information about each destination.

[ ]

Our agent will have access to three tools, which we’ll continue to enhance in upcoming labs:

  1. Essential Info – Provides key travel details about the destination, such as weather and general conditions.

  2. Budget Basics – Offers insights into travel costs and helps plan budgets based on selected activities.

  3. Local Flavor – Recommends unique local experiences and cultural highlights.

[ ]

Define agent

Next, we’ll construct our agent. The Agno framework makes this process straightforward by allowing us to easily define key parameters such as the model, instructions, and tools.

[ ]

Run agent

Finally, we are ready to run our agent! Run this cell to see an example in action.

[ ]
[ ]

Run evals with built-in eval templates & an OpenAI Model

Let's first use a classic config for our LLM & built in template for our first eval.

[ ]
[ ]
[ ]
[ ]

Run evals with built-in eval templates with a Custom Model

Let's now create a custom config for our LLM & re-run this built in template using the same evaluator.

[ ]
[ ]
[ ]
[ ]

Create a Custom Evaluator

Let's now create a custom evaluator & use the custom LLM config we just created. We can keep on the same idea of correctness, but let's add more application specific context to it.

[ ]
[ ]
[ ]
[ ]