LoopAgentOptions.NonStreamingReturnsLastResponseOnly Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value indicating whether a non-streaming run returns only the final iteration's response instead
of the aggregated transcript of every iteration. Defaults to false.
public bool NonStreamingReturnsLastResponseOnly { get; set; }
member this.NonStreamingReturnsLastResponseOnly : bool with get, set
Public Property NonStreamingReturnsLastResponseOnly As Boolean
Property Value
Remarks
By default a non-streaming LoopAgent run returns a single AgentResponse that aggregates, in order, the on-behalf-of messages the loop injected and the responses produced by every iteration — mirroring the full sequence of updates yielded by a streaming run. Set this to true to instead return only the last iteration's AgentResponse. This setting affects non-streaming runs only; streaming runs always yield every iteration's updates.