adk_eval_export (erlang_adk v0.10.0)

View Source

Deterministic, bounded evaluation-report rendering and CI exporters.

Exporters intentionally include identifiers, aggregate scores, and failure states only. Prompts, model responses, tool arguments, and adapter metadata are never copied into JUnit, SARIF, or annotation output.

Summary

Functions

Render one checked result (or, for JSON/Markdown, one canonical baseline comparison) through the shared CLI/API formatting boundary.

Types

format/0

-type format() :: json | markdown | junit | sarif | annotations.

Functions

annotations(Result0, Options)

-spec annotations(map(), map()) -> {ok, [map()]} | {error, term()}.

junit(Result0, Options)

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

render(Value, Format, Options0)

-spec render(map(), format(), map()) -> {ok, binary()} | {error, term()}.

Render one checked result (or, for JSON/Markdown, one canonical baseline comparison) through the shared CLI/API formatting boundary.

max_bytes is applied to every format, including annotation JSON. Keeping this dispatch here prevents the command line and Developer API from acquiring subtly different encoding, escaping, or size-limit behavior.

sarif(Result0, Options)

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