MingaAgent.Session.Request (Minga v0.1.0)

Copy Markdown View Source

Immutable, versioned request snapshot handed from a Session to a provider worker.

The snapshot carries the exact ReqLLM values for one request. Providers may consume it and return an outcome, but they do not own or mutate conversation history.

Summary

Functions

Creates the immutable snapshot for one admitted request.

Types

t()

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

Functions

new(request_id, turn_id, conversation_revision, messages)

@spec new(String.t(), pos_integer(), non_neg_integer(), [ReqLLM.Message.t()]) :: t()

Creates the immutable snapshot for one admitted request.