adk_llm_openai (erlang_adk v0.8.0)

View Source

Native OpenAI Responses API provider.

Uses the Responses API rather than translating through Chat Completions. Pure codecs own canonical content/tool translation; this module owns credentials, fixed headers, bounded HTTP and incremental SSE delivery.

Summary

Functions

capabilities()

generate(Config0, Memory, Tools)

-spec generate(map(), list(), list()) -> term().

public_config(Config)

-spec public_config(map()) -> map().

stream(Config, Memory, Tools, Callback)

-spec stream(map(), list(), list(), fun((binary()) -> ok)) -> term().

stream_content(Config, Memory, Tools, Callback)

-spec stream_content(map(), list(), list(), fun((adk_content:content()) -> ok)) -> term().

validate_config(Config0)

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