EmbeddingClient class

The single client that renders every declared embedding provider value.

Constructors

EmbeddingClient.mount({required EmbeddingProviderRegistry registry, String? providerId, required Map<String, String> environment, required EmbeddingIndexIdentity indexIdentity, required EmbeddingSiteBinding siteBinding, EmbeddingHttpSend send = sendEmbeddingHttpRequest})
Validates all mount invariants before constructing a usable client.
factory

Properties

endpoint → Uri
Machine-local base endpoint resolved at mount.
final
hashCode → int
The hash code for this object.
no setterinherited
provider → EmbeddingProvider
Selected provider declaration.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

embed(List<String> inputs) → Future<List<List<double>>>
Embeds inputs in declared-size batches while preserving global order.
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