ADK.Types.Content (adk_ex v1.1.0)

Copy Markdown View Source

A message containing one or more parts with a role.

Summary

Types

t()

@type t() :: %ADK.Types.Content{parts: [ADK.Types.Part.t()], role: String.t()}

Functions

new_from_bytes(role, data, mime_type)

@spec new_from_bytes(String.t(), binary(), String.t()) :: t()

new_from_text(role, text)

@spec new_from_text(String.t(), String.t()) :: t()