Packages

Elixir framework for building production-ready AI agents and LLM applications: type-safe schemas with JSON Schema generation, tool calling, streaming, multi-agent coordination, guardrails, and distributed fault-tolerant sessions, with first-class Anthropic Claude support.

Current section

Files

Jump to
normandy lib normandy components tool_call.ex
Raw

lib/normandy/components/tool_call.ex

defmodule Normandy.Components.ToolCall do
@moduledoc """
Represents a tool call request from the LLM.
Tool calls contain the name of the tool to execute and the input parameters.
"""
use Normandy.Schema
@type t :: %__MODULE__{
id: String.t(),
name: String.t(),
input: map()
}
schema do
field(:id, :string)
field(:name, :string)
field(:input, :map)
end
end