WayfinderEncoder class final
An open encoder: its embedder, the tokenizer that counts an input's tokens, and the most tokens one input may have.
A WayfinderKnowledgeStore disposes the embedder of every encoder its
provider opens.
Constructors
-
WayfinderEncoder(BaseEmbedder embedder, Future<
int> countTokens(String), int maxTokens)
Properties
-
countTokens
→ Future<
int> Function(String) -
final
- embedder → BaseEmbedder
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxTokens → int
-
final
- 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