MingaAgent.Providers.Native.ReqLLMAdapter.TurnResult (Minga v0.1.0)

Copy Markdown View Source

Decoded result from one ReqLLM provider response.

The adapter owns the ReqLLM response shape. Native consumes this struct to decide whether the turn is complete or should continue through tool execution.

Summary

Functions

Creates a decoded turn result while retaining the complete assistant message.

Types

t()

@type t() :: %MingaAgent.Providers.Native.ReqLLMAdapter.TurnResult{
  message: ReqLLM.Message.t(),
  tool_calls: [MingaAgent.Providers.Native.ReqLLMAdapter.ToolCall.t()],
  usage: MingaAgent.Providers.Native.ReqLLMAdapter.raw_usage() | nil
}

Functions

new(message, tool_calls, usage)

Creates a decoded turn result while retaining the complete assistant message.