Demonstrates using evaluate() from @agentv/core to run evaluations as a library — no YAML needed.
- Imports
evaluate()from@agentv/core - Defines tests inline with assertions
- Runs the evaluation and prints summary statistics
# From repository root
cd examples/features/sdk-programmatic-api
bun install
# Run the programmatic evaluation
bun run evaluate.tsevaluate()— use AgentV as a library, not just a CLI- Inline tests — define tests in TypeScript, no YAML needed
- Config mirrors YAML — same
assert,targetstructure - Typed results —
EvalRunResultwith summary statistics