Exception: Langchain::Utils::TokenLength::TokenLimitExceeded
- Inherits:
-
StandardError
- Object
- StandardError
- Langchain::Utils::TokenLength::TokenLimitExceeded
- Defined in:
- lib/langchain/utils/token_length/token_limit_exceeded.rb
Instance Attribute Summary collapse
-
#token_overflow ⇒ Object
readonly
Returns the value of attribute token_overflow.
Instance Method Summary collapse
-
#initialize(message = "", token_overflow = 0) ⇒ TokenLimitExceeded
constructor
A new instance of TokenLimitExceeded.
Constructor Details
#initialize(message = "", token_overflow = 0) ⇒ TokenLimitExceeded
Returns a new instance of TokenLimitExceeded.
9 10 11 12 13 |
# File 'lib/langchain/utils/token_length/token_limit_exceeded.rb', line 9 def initialize( = "", token_overflow = 0) super() @token_overflow = token_overflow end |
Instance Attribute Details
#token_overflow ⇒ Object (readonly)
Returns the value of attribute token_overflow.
7 8 9 |
# File 'lib/langchain/utils/token_length/token_limit_exceeded.rb', line 7 def token_overflow @token_overflow end |