Table of Contents

Class TokenLimitExceededException

Namespace
Mythosia.AI.Exceptions
Assembly
Mythosia.AI.Abstractions.dll

Exception thrown when token limit is exceeded

public class TokenLimitExceededException : AIServiceException, ISerializable
Inheritance
TokenLimitExceededException
Implements
Inherited Members

Constructors

TokenLimitExceededException(string, uint, uint)

public TokenLimitExceededException(string message, uint requestedTokens, uint maxTokens)

Parameters

message string
requestedTokens uint
maxTokens uint

TokenLimitExceededException(uint, uint)

public TokenLimitExceededException(uint requestedTokens, uint maxTokens)

Parameters

requestedTokens uint
maxTokens uint

Properties

MaxTokens

public uint MaxTokens { get; }

Property Value

uint

RequestedTokens

public uint RequestedTokens { get; }

Property Value

uint