adk_live_openai (erlang_adk v0.8.0)

View Source

OpenAI Realtime provider adapter.

The adapter keeps OpenAI wire details out of the provider-neutral Live session. It deliberately supports the GA Realtime WebSocket event model; browser WebRTC negotiation remains a UI/server concern.

Summary

Functions

capabilities()

-spec capabilities() -> map().

decode_server(Frame, Config)

-spec decode_server(binary(), map()) -> {ok, [adk_live_provider:event_spec()]} | {error, term()}.

encode_client(Action, Config)

-spec encode_client(adk_live_provider:client_action(), map()) ->
                       {ok, binary() | [binary(), ...]} | ignored | {error, term()}.

model()

-spec model() -> binary().

setup_frame(Config)

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

transport()

-spec transport() -> module().

validate_config(Config)

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