LlmCall.ToolResult (llm_call v0.1.0)

Copy Markdown View Source

The result of a tool call, ready to send back to the model.

Adapters validate the identifier they need: some protocols require call_id, others (Gemini) require name. Content is text-only — no protocol carries a non-text tool result — so a wider type would promise what validation refuses.

Summary

Types

content()

@type content() :: [LlmCall.Content.Text.t()] | String.t()

t()

@type t() :: %LlmCall.ToolResult{
  call_id: String.t() | nil,
  content: content(),
  is_error: boolean(),
  name: String.t() | nil
}