ResponseMetaInfoBuilder
Builder for creating ResponseMetaInfo instances from Java code.
Usage from Java:
ResponseMetaInfo metaInfo = ResponseMetaInfo.builder()
.timestamp(Instant.now())
.totalTokensCount(100)
.inputTokensCount(40)
.outputTokensCount(60)
.build();Content copied to clipboard
Functions
Link copied to clipboard
Builds a new ResponseMetaInfo instance. If no timestamp is set, the current system time is used.
Link copied to clipboard
Sets the input token count.
Link copied to clipboard
Sets the metadata.
Link copied to clipboard
Sets the output token count.
Link copied to clipboard
Sets the timestamp using java.time.Instant.
Sets the timestamp using kotlin.time.Instant.
Link copied to clipboard
Sets the total token count.