TokenBudgetExceededException
NexusLabs.Needlr.AgentFramework¶
NexusLabs.Needlr.AgentFramework.Budget¶
TokenBudgetExceededException Class¶
Thrown when a pipeline's token budget is exceeded.
Inheritance System.Object 🡒 System.Exception 🡒 TokenBudgetExceededException
Constructors¶
TokenBudgetExceededException(long, long) Constructor¶
Parameters¶
currentTokens System.Int64
Accumulated token count.
maxTokens System.Int64
The budget limit that was exceeded.
Properties¶
TokenBudgetExceededException.CurrentTokens Property¶
Gets the number of tokens accumulated at the time the budget was exceeded.
Property Value¶
TokenBudgetExceededException.MaxTokens Property¶
Gets the maximum token budget that was exceeded.