# `ToolCall.Approval.Request`

A serializable pending approval.

`args` is the raw argument map the model requested; `context` is whatever
the caller passed to `run/4`. `inserted_at` lets the application expire
stale requests. The struct itself contains no pids or closures; `args` and
`context` are caller-provided and serializable only when those values are.

The request does not store one-off execution options. On resume, re-supply
`validate_result:`, `timeout:`, `audit:` and `task_supervisor:` if the
original call used them, or keep using the `Call` returned by
`Runner.resolve/4`. The pending audit entry carries the request id; a
resumed entry does not, so pass `request.id` in the resume context when
correlating audit records.

# `t`

```elixir
@type t() :: %ToolCall.Approval.Request{
  args: map(),
  context: term(),
  id: String.t(),
  inserted_at: DateTime.t(),
  module: module(),
  reason: term(),
  tool: String.t()
}
```

---

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