adk_trace_event (erlang_adk v0.10.0)
View SourceMetadata-only projection for developer trace retention.
The trace store accepts the already-versioned observability and workflow lifecycle schemas, but deliberately applies a narrower persistence policy: prompt, response, media, tool argument, and result fields are never retained. The default policy rejects a content-bearing event. A trusted local owner may instead configure prune, which removes those fields and marks the retained wrapper without weakening either source schema validation.
Summary
Types
-type content_policy() :: reject | prune.
-type projection() :: #{kind := observability | workflow_lifecycle, timestamp_ms := non_neg_integer(), identity := map(), event := map(), content_pruned := boolean()}.
Functions
-spec observability(map(), content_policy()) -> {ok, projection()} | {error, term()}.
-spec workflow_lifecycle(map(), content_policy()) -> {ok, projection()} | {error, term()}.