evaluate

command
v2.22.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Standalone Evaluate Example

Run evals against a conversation snapshot with sdk.Evaluate() — no live provider or agent connection needed, just messages in, results out.

What it shows

  • Running evals from a PromptPack against a conversation snapshot
  • Filtering evals by trigger (every_turn vs on_session_complete)
  • Running evals from inline definitions (no pack file needed)
  • Receiving eval results via the EventBus for reactive workflows
  • Recording eval results as Prometheus metrics via a MetricsCollector
  • Validating that all eval types are registered before execution
  • Extending the eval registry with custom exec handlers via RuntimeConfig

Running

cd sdk/examples/evaluate
go run .

Documentation

Overview

Package main demonstrates standalone eval execution with sdk.Evaluate().

This example shows:

  • Running evals from a PromptPack against a conversation snapshot
  • No live provider or agent connection needed — just messages in, results out
  • Filtering evals by trigger (every_turn vs on_session_complete)
  • Running evals from inline definitions (no pack file needed)
  • Receiving eval results via the EventBus for reactive workflows
  • Recording eval results as Prometheus metrics via MetricsCollector
  • Validating that all eval types are registered before execution
  • Extending the eval registry with custom exec handlers via RuntimeConfig

Run with:

go run .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL