Class EdgeChatException
Every chat failure that is not a provisioning failure: the environment task, the model host, the memory budget, the shape reader and the decode loop all raise this one type.
public sealed class EdgeChatException : EdgeException, ISerializable
- Inheritance
-
EdgeChatException
- Implements
- Inherited Members
Remarks
Derives from sub-project 1's EdgeException, so the HelpLink convention
(foundation/docs/errors.md#<code>) applies for free. Provisioning failures reuse
sub-project 2's EdgeModelProvisioningException and its 5053-5056 codes rather than
minting duplicates (spec 15.2); 7051, 7052 and 7053 are the three cases sub-project 2 has no
code for and they are raised from here.
Constructors
- EdgeChatException(EdgeErrorCode, string, Exception?)
Creates the exception.
Properties
- AvailableBytes
The bytes the OS reported available.
- BudgetKind
How to read AvailableBytes.
- FittingContextTokens
The largest context that would have fit, when any would have.
- ModelId
The model id this failure concerns, when it concerns one.
- PresetId
The preset this failure concerns, when it concerns one.
- PromptTokens
The prompt length, when the prompt was the cause.
- Remediation
What the caller can do about it, in one sentence.
- RequestedContextTokens
The context length that was asked for.
- RequiredBytes
The bytes the operation needed, when a memory or disk budget was the cause.
- RuntimeIdentifier
The host runtime identifier.
- Thermal
The thermal state, when thermal pressure was the cause.
- TotalMemoryBytes
The device's total memory, as EdgeChatDeviceProfile read it.