Skip to content

ModelRequest

Namespace: E2E

public sealed class ModelRequest

Inheritance: object

View source

public bool MarkLatest { get; init; }

Upstream’s ProviderHints.markLatest, which only the act tool loop calls: the next turn repeats everything up to the newest message, so AnthropicModel marks that message for caching. Judgments and extractions leave it off.

Value: bool

View source

public required IReadOnlyList<ModelMessage> Messages { get; init; }

Value: IReadOnlyList<ModelMessage>

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderOptions { get; init; }

The agent’s provider options, keyed by provider, for the model to pass on. Null when none are set. OpenAiCompatibleModel adds the entry under its provider name to the request body.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public required string System { get; init; }

Value: string

View source

public required IReadOnlyList<ModelTool> Tools { get; init; }

Value: IReadOnlyList<ModelTool>

View source