Backplane. AiProtocol. Codec. Google
(backplane_ai_protocol v1.10.7)
Copy Markdown
Pure Google Gemini GenerateContent request, response, error, and SSE codec.
Summary
Functions
Encodes Google GenerateContent as a transport target plus its native REST body.
Functions
@spec encode_rest_request( Backplane.AiProtocol.Request.t(), keyword() ) :: {:ok, %{target: map(), body: map()}} | {:error, Backplane.AiProtocol.Error.t()}
Encodes Google GenerateContent as a transport target plus its native REST body.
model, operation, and stream belong to the target and are deliberately absent from the
body. encode_request/2 remains the compatibility wrapper for the historical envelope.