adk_llm_gemini_content (erlang_adk v0.7.0)

View Source

Checked translation between the provider-neutral adk_content schema and Gemini Content/Part JSON objects.

Summary

Functions

decode(Parts, Limits)

-spec decode([map()], map()) -> {ok, adk_content:content()} | {error, term()}.

encode(Content, Limits)

-spec encode(adk_content:content(), map()) -> {ok, [map()]} | {error, term()}.

part_types(Content)

-spec part_types(adk_content:content()) -> [binary()].

text_parts(Content)

-spec text_parts(adk_content:content()) -> [binary()].

tool_calls(Content)

-spec tool_calls(adk_content:content()) -> list().