MpTextEmbedderFormatContext class final
Encapsulates formatting instructions for models that require it (like Gecko).
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- role ↔ MpTextEmbedderRole
-
getter/setter pair
- roleAsInt ↔ int
-
The role of the text in the context of the embedding task.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- task_type ↔ MpTextEmbedderEmbeddingType
-
getter/setter pair
- task_typeAsInt ↔ int
-
The embedding type, used to format input text.
getter/setter pair
-
title
↔ Pointer<
Char> -
The title of the text, used to format the input text.
getter/setter pair
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
Static Methods
-
$allocate(
Allocator $allocator, {required MpTextEmbedderEmbeddingType task_type, required Pointer< Char> title, required MpTextEmbedderRole role}) → Pointer<MpTextEmbedderFormatContext>