create
fun create(clock: Clock, totalTokensCount: Int? = null, inputTokensCount: Int? = null, outputTokensCount: Int? = null, additionalInfo: Map<String, String> = emptyMap(), metadata: JsonObject? = 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.
totalTokensCount
The total number of tokens involved in the response, including both input and output tokens.
inputTokensCount
The number of tokens used in the input.
outputTokensCount
The number of tokens generated in the output.
additionalInfo
Deprecated: use metadata instead. Additional metadata as a map of string keys to string values.
metadata
Additional metadata as a JSON object.