Mojentic.LLM.ToolCall (Mojentic v1.2.0)

Copy Markdown View Source

Represents a tool call from an LLM.

Tool calls contain the tool name, arguments, and optionally an ID for tracking purposes.

Examples

iex> %ToolCall{name: "get_weather", arguments: %{"location" => "SF"}}
%ToolCall{id: nil, name: "get_weather", arguments: %{"location" => "SF"}}

Summary

Types

t()

@type t() :: %Mojentic.LLM.ToolCall{
  arguments: map(),
  id: String.t() | nil,
  name: String.t()
}