adk_eval_agent_adapter (erlang_adk v0.7.0)

View Source

Production adapter for evaluating an Erlang ADK agent specification.

Every case/sample receives a fresh agent, Runner session, and guardian process. The guardian owns resource cleanup and monitors the bounded evaluation worker, so a case timeout or max-heap kill cannot orphan the supervised agent or its active Runner stream.

Summary

Functions

init_case(Target, Case, Context, Config)

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

run_turn(_, Turn, State, Context, Config)

-spec run_turn(map(), map(), term(), map(), map()) ->
                  {ok, adk_eval_adapter:turn_result()} | {error, term()}.

terminate_case(_, State, Config)

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