# `PtcRunner.LLM.Invocation`
[🔗](https://github.com/andreasronge/ptc_runner/blob/main/lib/ptc_runner/llm/invocation.ex#L1)

Closed per-call adapter request sealed by `PtcRunner.LLM.callback/2`.

Hosts receive an arity-two requester and do not construct this struct.
Adapter `call/2` receives the sealed request map, credential, cache flag, and
optional per-call deadline. A `nil` deadline means the call is not bound to a
live Kernel cutoff.

# `t`

```elixir
@type t() :: %PtcRunner.LLM.Invocation{
  cache: boolean(),
  credential: binary() | nil,
  llm_request_deadline_ms: integer() | nil,
  request: map()
}
```

# `valid?`

```elixir
@spec valid?(term()) :: boolean()
```

---

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