adk_eval_simulation (erlang_adk v0.10.0)

View Source

Heap-, deadline-, and step-bounded simulator runtime for evaluations.

Simulator modules are selected by trusted operator code. Scenario, transcript, turn, effect, and result values cross a strict JSON boundary; simulator-private state stays in the calling evaluation worker and is not persisted or exposed in reports.

Summary

Functions

capabilities(_)

-spec capabilities(map()) -> map().

handle_effect(Simulation, Effect, Context)

-spec handle_effect(map(), map(), map()) -> {ok, term(), map()} | {error, term()}.

next_user(Simulation, Transcript, Context)

-spec next_user(map(), [map()], map()) -> {continue, map(), map()} | {done, map()} | {error, term()}.

start(User0, Environment0, Scenario, Options0)

-spec start(map(), undefined | map(), map(), map()) -> {ok, map()} | {error, term()}.

stop(_)

-spec stop(map()) -> ok.