Gemini.Types.Interactions.FunctionResultContent (GeminiEx v0.9.0)

Copy Markdown View Source

A function tool result content block (type: "function_result").

The result payload may include strings, image content blocks, or arbitrary structured data returned by tools.

Summary

Types

t()

@type t() :: %Gemini.Types.Interactions.FunctionResultContent{
  call_id: String.t(),
  is_error: boolean() | nil,
  name: String.t() | nil,
  result: term(),
  type: String.t()
}

Functions

from_api(content)

@spec from_api(map() | nil) :: t() | nil

to_api(map)

@spec to_api(t() | map() | nil) :: map() | nil