类的使用
io.agentscope.core.model.ChatUsage
使用ChatUsage的程序包
程序包
说明
-
io.agentscope.core.agent.accumulator中ChatUsage的使用
-
io.agentscope.core.event中ChatUsage的使用
参数类型为ChatUsage的io.agentscope.core.event中的构造器限定符构造器说明ModelCallEndEvent(String replyId, ChatUsage usage) ModelCallEndEvent(String id, String createdAt, String replyId, ChatUsage usage) -
io.agentscope.core.message中ChatUsage的使用
修饰符和类型方法说明Msg.getChatUsage()Gets the chat usage statistics from this message's metadata.Msg.getUsage()Gets the token usage information associated with this message.参数类型为ChatUsage的io.agentscope.core.message中的方法修饰符和类型方法说明Sets the token usage information for this message.参数类型为ChatUsage的io.agentscope.core.message中的构造器 -
io.agentscope.core.model中ChatUsage的使用
修饰符和类型方法说明ChatUsage.Builder.build()Builds a new ChatUsage instance with the set values.ChatResponse.getUsage()Gets the token usage information for this response.参数类型为ChatUsage的io.agentscope.core.model中的方法修饰符和类型方法说明Sets the usage information for the response.参数类型为ChatUsage的io.agentscope.core.model中的构造器限定符构造器说明ChatResponse(String id, List<ContentBlock> content, ChatUsage usage, Map<String, Object> metadata, String finishReason) Creates a new ChatResponse instance.