Class EmbeddingResponseMetadata

java.lang.Object
dev.langchain4j.model.embedding.response.EmbeddingResponseMetadata

@Experimental public class EmbeddingResponseMetadata extends Object
Metadata returned alongside an EmbeddingResponse, describing the call that produced it: the model name and the token usage. Provider integrations may extend this class to add provider-specific metadata.

Embedding APIs report only input token counts, so TokenUsage.outputTokenCount() is left null.

Since:
1.18.0