adk_live_gemini_codec (erlang_adk v0.7.0)

View Source

Strict JSON codec for the Gemini 3.1 Flash Live WebSocket protocol.

Summary

Functions

decode_server(Frame, Config)

-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()} | {error, term()}.

resume_setup_frame(Config0, Handle)

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

setup_frame(Config0)

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