# `Codex.Realtime.ModelEvents.ToolCallEvent`
[🔗](https://github.com/nshkrdotcom/codex_sdk/blob/v0.16.1/lib/codex/realtime/model_events.ex#L32)

Model attempted a tool/function call.

# `t`

```elixir
@type t() :: %Codex.Realtime.ModelEvents.ToolCallEvent{
  arguments: String.t(),
  call_id: String.t(),
  id: String.t() | nil,
  name: String.t(),
  previous_item_id: String.t() | nil,
  type: :function_call
}
```

---

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