# `MingaAgent.InferenceRoute.Event`
[🔗](https://github.com/jsmestad/minga/blob/main/sdk/lib/minga_agent/inference_route/event.ex#L1)

One event in a route's response stream. Emit a tool call only once its arguments are final. A stream without a finish event finishes with `:stop`; `{:finish, {:error, term}}` fails the request and Minga passes `term` to `classify_error/1`.

This is a compile-time stub.

# `finish_reason`

```elixir
@type finish_reason() :: :stop | :tool_calls | :length | :refusal | {:error, term()}
```

# `t`

```elixir
@type t() ::
  {:text, String.t()}
  | {:thinking, String.t()}
  | {:tool_call, MingaAgent.InferenceRoute.ToolCall.t()}
  | {:usage, MingaAgent.InferenceRoute.Usage.t()}
  | {:finish, finish_reason()}
```

---

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