Class AgentRequest
Single agent execution request. Carries the user message, optional system prompt,
conversation context and the parent exchange for TX/scope/principal.
public sealed class AgentRequest
Inheritance
Properties
AuditTags
Free-form audit tags captured pre-call (operator-controlled key/value
public IReadOnlyDictionary<string, string>? AuditTags { get; init; }
CacheSystemPrompt
Ask the provider to cache the system prompt across turns — see
public bool CacheSystemPrompt { get; init; }
ConversationId
Conversation identifier (when conversation tracking is on).
public string? ConversationId { get; init; }
ConversationParentMessageId
Message id of the conversation node this run should attach under.
public string? ConversationParentMessageId { get; init; }
Exchange
Owning exchange — drives DI scope, headers, principal and observability.
public required IExchange Exchange { get; init; }
Factory
Connection factory used to build the provider.
public required LlmConnectionFactory Factory { get; init; }
OnDelta
Receiver of this run's pieces, beside the observer: the observer is shared by every run of the engine, and this
public Func<AgentDeltaContext, CancellationToken, Task>? OnDelta { get; init; }
Preamble
Messages placed before the loaded conversation history on every iteration of the
public IReadOnlyList<LlmMessage> Preamble { get; init; }
PromptTemplateName
Optional name of the prompt template that produced .
public string? PromptTemplateName { get; init; }
PromptTemplateVersion
Version of the prompt template named by .
public string? PromptTemplateVersion { get; init; }
PropagateToolHeaders
Extra header names the route author opted into propagating from this
public IReadOnlyList<string>? PropagateToolHeaders { get; init; }
StreamModelCalls
Make every model call of the run as a stream (stream=calls). The pieces go to
public bool StreamModelCalls { get; init; }
Tools
Tools available to the model on this run.
public IReadOnlyList<ILlmToolDescriptor> Tools { get; init; }
UserContent
Initial user message (may include text and tool-result blocks).
public required IReadOnlyList<LlmContentBlock> UserContent { get; init; }
UserId
Stable identifier of the principal that initiated this run (end-user,
public string? UserId { get; init; }