类的使用
io.agentscope.core.model.ChatUsage.Builder
使用ChatUsage.Builder的程序包
-
io.agentscope.core.model中ChatUsage.Builder的使用
修饰符和类型方法说明static ChatUsage.BuilderChatUsage.builder()Creates a new builder for ChatUsage.ChatUsage.Builder.cachedTokens(int cachedTokens) Sets the number of cached input tokens.ChatUsage.Builder.inputTokens(int inputTokens) Sets the number of input tokens.ChatUsage.Builder.outputTokens(int outputTokens) Sets the number of output tokens.ChatUsage.Builder.time(double time) Sets the execution time.