![JAR search and dependency download from the Maven repository](/logo.png)
cn.homj.autogen4j.support.openai.Usage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of autogen4j-agent Show documentation
Show all versions of autogen4j-agent Show documentation
Design inspired by Microsoft's AutoGen
The newest version!
package cn.homj.autogen4j.support.openai;
import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;
/**
* The OpenAI resources used by a request
*
* @author jiehong.jh
* @date 2023/11/22
*/
@Data
public class Usage {
/**
* The number of prompt tokens used.
*/
@JSONField(name = "prompt_tokens")
private Long promptTokens;
/**
* The number of completion tokens used.
*/
@JSONField(name = "completion_tokens")
private Long completionTokens;
/**
* The number of total tokens used
*/
@JSONField(name = "total_tokens")
private Long totalTokens;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy