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 for Native orchestration.

Types

t()

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

Functions

new(text, tool_calls, usage)

Creates a decoded turn result for Native orchestration.