LoopAgentOptions Class

Definition

Provides configuration options for LoopAgent.

public sealed class LoopAgentOptions
type LoopAgentOptions = class
Public NotInheritable Class LoopAgentOptions
Inheritance
LoopAgentOptions

Constructors

Name Description
LoopAgentOptions()

Properties

Name Description
ExcludeOnBehalfOfMessages

Gets or sets a value indicating whether the on-behalf-of messages the loop injects for re-invocations are omitted from the output surfaced back to the caller. Defaults to false.

FreshContextPerIteration

Gets or sets a value indicating whether each re-invocation restarts from a clean context: the original input messages plus an aggregated feedback log, rather than the latest feedback appended to the prior conversation. Defaults to false.

MaxIterations

Gets or sets the global safety cap on the number of times the wrapped agent is invoked in a single loop run, or null to use DefaultMaxIterations.

NonStreamingReturnsLastResponseOnly

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.

OnBehalfOfAuthorName

Gets or sets the author name stamped on the loop-synthesized "on-behalf-of" messages that the loop injects into the wrapped agent for re-invocations, or null to leave them unattributed. Defaults to null.

SessionCreatedCallback

Gets or sets an optional callback invoked whenever LoopAgent creates a new session, so the caller can capture the latest session (for example to continue the conversation after the loop completes). Defaults to null.

Applies to