Table of Contents

Constructor ChatBudgetRequest

Namespace
Qavren.Edge.Chat
Assembly
Qavren.Edge.Chat.Onnx.dll

ChatBudgetRequest(string, ChatModelShape, int, EdgeResourceSnapshot, EdgeChatDeviceProfile)

One question for the memory gate.

public ChatBudgetRequest(string PresetId, ChatModelShape Shape, int RequestedContextTokens, EdgeResourceSnapshot Resources, EdgeChatDeviceProfile Device)

Parameters

PresetId string

The preset being loaded.

Shape ChatModelShape

Its declared geometry.

RequestedContextTokens int

min(options.MaxContextTokens ?? preset.DefaultMaxContextTokens, shape.ContextLength, configDeclaredContextLength) - spec section 9.1 step 4 does the clamping, which is what keeps Qwen3_600MInt4's declared 40960 from ever reaching a generator.

Resources EdgeResourceSnapshot

One IEdgeResourceMonitor.Read().

Device EdgeChatDeviceProfile

The cached device profile.