ArchAstro.Types.AIToolCall (archastro v0.2.0)

Copy Markdown

A tool (function) call emitted by the assistant within an AI message. Mirrors the OpenAI tool-call object format.

Summary

Types

t()

@type t() :: %ArchAstro.Types.AIToolCall{
  arguments: %{optional(String.t()) => ArchAstro.JSON.t()},
  id: String.t(),
  name: String.t(),
  thought_signature: String.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()