MingaAgent.InferenceRoute.Event (minga_sdk v0.1.0)

Copy Markdown View Source

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.

Summary

Types

finish_reason()

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

t()

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