MingaAgent.Session.Outcome (Minga v0.1.0)

Copy Markdown View Source

Complete model-continuation outcome returned by a provider worker.

Request identity and the source conversation revision let Session reject a late or duplicate outcome without changing the durable boundary.

Summary

Functions

Builds a completed outcome for the exact request snapshot.

Types

t()

@type t() :: %MingaAgent.Session.Outcome{
  conversation_revision: non_neg_integer(),
  messages: [ReqLLM.Message.t()],
  request_id: String.t(),
  turn_id: pos_integer(),
  version: pos_integer()
}

Functions

new(request, messages)

Builds a completed outcome for the exact request snapshot.