类的使用
io.agentscope.core.model.ChatUsage
使用ChatUsage的程序包
程序包
说明
-
io.agentscope.core.agent中ChatUsage的使用
修饰符和类型方法说明StructuredOutputHook.getAggregatedUsage()Get the aggregated ChatUsage from all reasoning rounds. -
io.agentscope.core.agent.accumulator中ChatUsage的使用
-
io.agentscope.core.message中ChatUsage的使用
-
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.