Skip to main content
Score how well every chart type fits a dataset. Unlike the other agents, evaluate is deterministic — it runs a rule-based scorer with no language model, so it returns in a single fast response and uses no tokens.

Method

evaluate

Scores the dataset and returns the ranked result. There is no streaming variant — the result is computed synchronously on the server.

Parameters

evaluate is deterministic — it reads only config.data and the optional chartFamily. The chart type, styling, and annotations on config are ignored.

Response

The response is validated with Zod. Invalid responses throw an error.

ChartFitEntry

A single chart type, scored against the dataset.

ChartFitFactor


Basic Usage


Error Handling

See Error Handling for retry behavior and error types.