ASM.Message.Result (ASM v0.12.1)

Copy Markdown View Source

Terminal metadata describing why a run completed.

:object carries the provider-returned structured object when the run requested one through :output_schema, and nil otherwise.

Summary

Types

t()

@type t() :: %ASM.Message.Result{
  duration_ms: non_neg_integer() | nil,
  metadata: map(),
  object: term() | nil,
  stop_reason: atom() | String.t(),
  usage: map()
}