adk_openai_responses_codec (erlang_adk v0.8.0)
View SourceBounded request/response codec for OpenAI's Responses API.
Transport and credentials intentionally live outside this module. All wire maps are binary-keyed. Provider error messages are not retained because they can contain request/model content; callers receive only a bounded code.
Summary
Functions
Accept either a full provider config or a raw ADK content-limit map.
Sanitize either a top-level API error body or an error object. Only a conservative code/type token is retained; message, param and request values are deliberately discarded.
Functions
Accept either a full provider config or a raw ADK content-limit map.
Sanitize either a top-level API error body or an error object. Only a conservative code/type token is retained; message, param and request values are deliberately discarded.
-spec decode_response(term(), map()) -> {ok, adk_provider_result:result()} | {error, term()}.