Package ai.acolite.agentsdk.core
Class Usage
java.lang.Object
ai.acolite.agentsdk.core.Usage
Usage
Tracks token usage statistics from API calls.
Ported from TypeScript OpenAI Agents SDK Source: usage.ts
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Usage
public Usage()
-
-
Method Details
-
empty
Creates an empty Usage instance with all counts set to 0 -
add
Adds the usage from another Usage instance to this one- Parameters:
other- The Usage instance to add- Returns:
- A new Usage instance with summed values
-