Optional ReadonlygenerationThe number of tokens returned in the generation (aka completion) of the AI's response.
Optional ReadonlypromptThe number of tokens used in the prompt of the AI request.
Optional ReadonlytotalThe total number of tokens from both the prompt of an AI request and generation of the AI's response.
Abstract Data Type (ADT) encapsulating metadata on the usage of an AI provider's API per AI request.