LlmCall.ToolSpec (llm_call v0.1.0)

Copy Markdown View Source

A tool the model may call.

parameters is a JSON Schema object, not a JSON string. kind: :builtin is for provider-defined tools such as web search or code interpreter, whose native definition lives in provider_options.

Summary

Types

kind()

@type kind() :: :function | :builtin

t()

@type t() :: %LlmCall.ToolSpec{
  description: String.t() | nil,
  kind: kind(),
  name: String.t() | nil,
  parameters: map() | nil,
  provider_options: map(),
  strict: boolean() | nil
}