create
fun create(clock: KoogClock, totalTokensCount: Int? = null, inputTokensCount: Int? = null, outputTokensCount: Int? = null, modelId: String? = null, 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.
modelId
The ID of the model used for generating the response, or null if not available.
metadata
Additional metadata as a JSON object.