# `LlmCall.ToolSpec`
[🔗](https://github.com/gilbertwong96/llm_call/blob/main/lib/llm_call/tool_spec.ex#L1)

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`.

# `kind`

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

# `t`

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

---

*Consult [api-reference.md](api-reference.md) for complete listing*
