UsageDetails

class oci.generative_ai_agent_runtime.models.UsageDetails(**kwargs)

Bases: object

Usage details.

Methods

__init__(**kwargs) Initializes a new UsageDetails object with values from keyword arguments.

Attributes

input_char_count Gets the input_char_count of this UsageDetails.
input_token_count Gets the input_token_count of this UsageDetails.
output_char_count Gets the output_char_count of this UsageDetails.
output_token_count Gets the output_token_count of this UsageDetails.
__init__(**kwargs)

Initializes a new UsageDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • input_token_count (int) – The value to assign to the input_token_count property of this UsageDetails.
  • output_token_count (int) – The value to assign to the output_token_count property of this UsageDetails.
  • input_char_count (int) – The value to assign to the input_char_count property of this UsageDetails.
  • output_char_count (int) – The value to assign to the output_char_count property of this UsageDetails.
input_char_count

Gets the input_char_count of this UsageDetails. Number of input characters.

Returns:The input_char_count of this UsageDetails.
Return type:int
input_token_count

Gets the input_token_count of this UsageDetails. Number of input tokens.

Returns:The input_token_count of this UsageDetails.
Return type:int
output_char_count

Gets the output_char_count of this UsageDetails. Number of output characters.

Returns:The output_char_count of this UsageDetails.
Return type:int
output_token_count

Gets the output_token_count of this UsageDetails. Number of output tokens.

Returns:The output_token_count of this UsageDetails.
Return type:int