adk_llm_gemini (erlang_adk v0.9.0)
View SourceSummary
Functions
Decode a complete GenerateContent response without any Gemini context cache lifecycle. Callers which expose a different provider identity must re-tag the checked provider-result envelope at their own boundary.
Decode one JSON value from streamGenerateContent. Accounting-only frames are represented as none and never synthesize an empty content delta. SSE framing remains the responsibility of the transport adapter.
Pure GenerateContent wire encoder shared by Google's public Gemini API and the native Vertex request adapter. It owns no URL or credential policy.
Secret- and handle-free projection for diagnostics.
Stream one canonical versioned content value per decoded Gemini SSE frame. stream/4 remains the backwards-compatible text-delta API.
Functions
-spec cache_provider() -> module().
Decode a complete GenerateContent response without any Gemini context cache lifecycle. Callers which expose a different provider identity must re-tag the checked provider-result envelope at their own boundary.
-spec decode_stream_generate_content(binary(), map()) -> {ok, none | adk_content:content()} | {error, term()}.
Decode one JSON value from streamGenerateContent. Accounting-only frames are represented as none and never synthesize an empty content delta. SSE framing remains the responsibility of the transport adapter.
Pure GenerateContent wire encoder shared by Google's public Gemini API and the native Vertex request adapter. It owns no URL or credential policy.
Secret- and handle-free projection for diagnostics.
Stream one canonical versioned content value per decoded Gemini SSE frame. stream/4 remains the backwards-compatible text-delta API.