adk_live_openai_codec (erlang_adk v0.8.0)

View Source

Strict codec for the OpenAI Realtime WebSocket event protocol.

Summary

Functions

decode_server(Frame, Config0)

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

encode_client(Action, Config0)

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

setup_frame(Config0)

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