adk_provider_result (erlang_adk v0.7.0)
View SourceChecked envelope for provider-specific result metadata.
Providers must keep the legacy result terms when they have no metadata. When metadata is present, {provider_result, Envelope} is the reserved LLM result tag. The envelope is internal Erlang data; provider_metadata/1 returns the bounded JSON-safe projection suitable for adk_event.actions.
Summary
Types
Functions
Decode and revalidate an untrusted provider-result tuple. This check is intentionally repeated at the agent boundary because callbacks and custom providers can manufacture result terms without using new/4.
-spec max_metadata_bytes() -> pos_integer().