Skip to main content
Legacy Evaluator: This evaluator is from phoenix-evals 1.x and will be removed in a future version. For tool calling evaluation, consider using Tool Selection and Tool Invocation evaluators instead. You can migrate the template to a custom evaluator as shown below.

Demo

Function Calling Eval Template

Running an Agent Eval using the Function Calling Template

Parameters:
  • df - a dataframe of cases to evaluate. The dataframe must have these columns to match the default template:
    • question - the query made to the model. If you’ve exported spans from Phoenix to evaluate, this will the llm.input_messages column in your exported data.
    • tool_call - information on the tool called and parameters included. If you’ve exported spans from Phoenix to evaluate, this will be the llm.function_call column in your exported data.

Parameter Extraction Only

This template instead evaluates only the parameter extraction step of a router: