ArchAstro.Types.AIToolResult (archastro v0.2.0)

Copy Markdown

The result of executing a tool call, submitted back to the model as a tool-role message. Mirrors the OpenAI tool-result object format.

Summary

Types

t()

@type t() :: %ArchAstro.Types.AIToolResult{
  content: String.t() | ArchAstro.Unset.t(),
  id: String.t(),
  name: String.t(),
  resolution: ArchAstro.JSON.t() | ArchAstro.Unset.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()