adk_eval (erlang_adk v0.7.0)
View Sourceadk_eval - Lightweight evaluation helpers for Erlang ADK.
Allows defining datasets and running them against an agent to calculate metrics.
Summary
Types
Functions
-spec run(AgentRef :: term(), Dataset :: dataset(), MetricFn :: metric_fn()) -> {ok, map()} | {error, term()}.
Run an evaluation.
-spec run(AgentRef :: term(), Dataset :: dataset(), MetricFn :: metric_fn(), Opts :: map()) -> {ok, map()} | {error, term()}.
Run an evaluation with options (e.g. concurrency).
concurrency controls the number of evaluator worker processes. Calls made to one stateful agent pid are still serialized by that agent's gen_server; use separate agent processes when model calls themselves must overlap.