EmbeddingInputTooLongException class final
The input is longer than maxInputTokens — task prefix, BOS and EOS included. Nothing was truncated; split the text and embed the pieces.
- Inheritance
-
- Object
- EmbeddingException
- EmbeddingInputTooLongException
Constructors
- EmbeddingInputTooLongException(String message, {required int maxInputTokens, int? actualTokens})
-
const
Properties
- actualTokens → int?
-
The exact count when the engine has one; null when the runtime reports
the overflow without a count.
final
- cause → Object?
-
The underlying error, when there is one. Not carried across the embedding
worker boundary (it may not be sendable); there the message says it.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxInputTokens → int
-
final
- message → String
-
What happened, in words meant for a developer.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited