LoopAgentOptions Class
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.
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 |
| 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 |
| MaxIterations |
Gets or sets the global safety cap on the number of times the wrapped agent is invoked in a single loop run,
or |
| 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 |
| 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 |
| 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
|