create

fun create(clock: Clock, totalTokensCount: Int? = null, inputTokensCount: Int? = null, outputTokensCount: Int? = null): ResponseMetaInfo(source)

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

Return

A new ResponseMetadata instance with the timestamp from the provided clock.

Parameters

clock

The clock to use for generating the timestamp.

tokensCount

The number of tokens used in the response, or null if not available.