adk_openai_responses_content (erlang_adk v0.8.0)
View SourceChecked translation between ADK's provider-neutral content/history representation and OpenAI Responses API input/output items.
This module is deliberately a JSON boundary: emitted maps use binary keys, provider output is treated as untrusted, and error terms never retain model text, tool arguments, tool results, or other request content.
Summary
Functions
Decode a complete Responses output array. The returned content is canonical adk_content; calls preserve the OpenAI call_id in the fourth ADK tuple element and have no provider thought signature.
Functions
-spec decode_output(term(), map()) -> {ok, adk_content:content(), list()} | {error, term()}.
Decode a complete Responses output array. The returned content is canonical adk_content; calls preserve the OpenAI call_id in the fourth ADK tuple element and have no provider thought signature.
-spec text_parts(adk_content:content()) -> [binary()].
-spec tool_calls(adk_content:content()) -> list().