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: KoogClock, totalTokensCount: Int? = null, inputTokensCount: Int? = null, outputTokensCount: Int? = null, modelId: String? = null, metadata: JsonObject? = null): ResponseMetaInfo

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

Link copied to clipboard
fun ResponseMetaInfo.Companion.fromJavaInstant(timestamp: Instant, totalTokensCount: Int? = null, inputTokensCount: Int? = null, outputTokensCount: Int? = null, metadata: JsonObject? = null): ResponseMetaInfo

Creates a ResponseMetaInfo with a java.time.Instant timestamp.