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

Copy Markdown View Source

MCP server tool result content block (type: "mcp_server_tool_result").

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

Summary

Types

t()

@type t() :: %Gemini.Types.Interactions.MCPServerToolResultContent{
  call_id: String.t(),
  name: String.t() | nil,
  result: term(),
  server_name: String.t() | nil,
  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