ADK.Types (adk_ex v1.1.0)

Copy Markdown View Source

Core content types equivalent to Google's genai SDK types.

Provides Content, Part, FunctionCall, FunctionResponse, and Blob structs used throughout the ADK for representing LLM interactions.

Summary

Functions

Extracts all function calls from a Content struct.

Extracts all function responses from a Content struct.

Returns true if the content contains any function calls.

Returns true if the content contains any function responses.

Functions

function_calls(content)

@spec function_calls(ADK.Types.Content.t()) :: [ADK.Types.FunctionCall.t()]

Extracts all function calls from a Content struct.

function_responses(content)

@spec function_responses(ADK.Types.Content.t()) :: [ADK.Types.FunctionResponse.t()]

Extracts all function responses from a Content struct.

has_function_calls?(content)

@spec has_function_calls?(ADK.Types.Content.t()) :: boolean()

Returns true if the content contains any function calls.

has_function_responses?(content)

@spec has_function_responses?(ADK.Types.Content.t()) :: boolean()

Returns true if the content contains any function responses.

role_model()

role_user()