Exception: RubyLLM::Tokenizer::ContextExceededError
- Defined in:
- lib/ruby_llm/tokenizer/errors.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#model ⇒ Object
readonly
Returns the value of attribute model.
-
#token_count ⇒ Object
readonly
Returns the value of attribute token_count.
Instance Method Summary collapse
-
#initialize(message = nil, token_count: nil, limit: nil, model: nil) ⇒ ContextExceededError
constructor
A new instance of ContextExceededError.
Constructor Details
#initialize(message = nil, token_count: nil, limit: nil, model: nil) ⇒ ContextExceededError
Returns a new instance of ContextExceededError.
16 17 18 19 20 21 |
# File 'lib/ruby_llm/tokenizer/errors.rb', line 16 def initialize( = nil, token_count: nil, limit: nil, model: nil) super() @token_count = token_count @limit = limit @model = model end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
14 15 16 |
# File 'lib/ruby_llm/tokenizer/errors.rb', line 14 def limit @limit end |
#model ⇒ Object (readonly)
Returns the value of attribute model.
14 15 16 |
# File 'lib/ruby_llm/tokenizer/errors.rb', line 14 def model @model end |
#token_count ⇒ Object (readonly)
Returns the value of attribute token_count.
14 15 16 |
# File 'lib/ruby_llm/tokenizer/errors.rb', line 14 def token_count @token_count end |