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
@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
@spec new( ReqLLM.Message.t(), [MingaAgent.Providers.Native.ReqLLMAdapter.ToolCall.t()], MingaAgent.Providers.Native.ReqLLMAdapter.raw_usage() | nil ) :: t()
Creates a decoded turn result while retaining the complete assistant message.