Companion

Companion object for the ResponseMetaInfo class. Provides utility methods to create ResponseMetaInfo instances.

Properties

Link copied to clipboard

An empty instance of the ResponseMetaInfo with the timestamp set to a distant past.

Functions

Link copied to clipboard
fun create(clock: Clock, totalTokensCount: Int? = null, inputTokensCount: Int? = null, outputTokensCount: Int? = null, additionalInfo: Map<String, String> = emptyMap(), metadata: JsonObject? = null): ResponseMetaInfo

Creates a ResponseMetadata instance with a timestamp from the provided clock.