Package com.sap.ai.sdk.foundationmodels.openai.model

# Class OpenAiUsage

java.lang.Object
com.sap.ai.sdk.foundationmodels.openai.model.OpenAiUsage

@Deprecated public class OpenAiUsage extends Object
Deprecated.
Usage statistics for the completion request.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OpenAiUsage()`
  Deprecated.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected boolean`
  `canEqual(Object other)`
  Deprecated.
  `boolean`
  `equals(Object o)`
  Deprecated.
  `Integer`
  `getCompletionTokens()`
  Deprecated.
  Tokens consumed for output text completion.
  `Integer`
  `getPromptTokens()`
  Deprecated.
  Tokens consumed for input prompt tokens.
  `Integer`
  `getTotalTokens()`
  Deprecated.
  Total tokens consumed for input + output.
  `int`
  `hashCode()`
  Deprecated.
  `String`
  `toString()`
  Deprecated.

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### OpenAiUsage

    public OpenAiUsage()
    Deprecated.

- ## Method Details

  - ### equals

    public boolean equals(Object o)
    Deprecated.
    Overrides:
      `equals` in class `Object`

  - ### canEqual

    protected boolean canEqual(Object other)
    Deprecated.

  - ### hashCode

    public int hashCode()
    Deprecated.
    Overrides:
      `hashCode` in class `Object`

  - ### toString

    public String toString()
    Deprecated.
    Overrides:
      `toString` in class `Object`

  - ### getCompletionTokens

    @Nullable public Integer getCompletionTokens()
    Deprecated.
    Tokens consumed for output text completion.

  - ### getPromptTokens

    @Nonnull public Integer getPromptTokens()
    Deprecated.
    Tokens consumed for input prompt tokens.

  - ### getTotalTokens

    @Nonnull public Integer getTotalTokens()
    Deprecated.
    Total tokens consumed for input + output.