Class: OpenAI::Models::Admin::Organization::UsageCodeInterpreterSessionsResponse::Data::Result::OrganizationUsageModerationsResult

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb,
sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize ⇒ Object



458
# File 'sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs', line 458

def initialize: (

Instance Attribute Details

#api_key_id ⇒ String?

When group_by=api_key_id, this field provides the API key ID of the grouped usage result.



494
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 494

optional :api_key_id, String, nil?: true

#input_tokens ⇒ Integer

The aggregated number of input tokens used.



476
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 476

required :input_tokens, Integer

#model ⇒ String?

When group_by=model, this field provides the model name of the grouped usage result.



501
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 501

optional :model, String, nil?: true

#num_model_requests ⇒ Integer

The count of requests made to the model.



482
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 482

required :num_model_requests, Integer

#object ⇒ Symbol, :"organization.usage.moderations.result"



487
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 487

required :object, const: :"organization.usage.moderations.result"

#project_id ⇒ String?

When group_by=project_id, this field provides the project ID of the grouped usage result.



508
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 508

optional :project_id, String, nil?: true

#user_id ⇒ String?

When group_by=user_id, this field provides the user ID of the grouped usage result.



515
# File 'lib/openai/models/admin/organization/usage_code_interpreter_sessions_response.rb', line 515

optional :user_id, String, nil?: true

Instance Method Details

#to_hash ⇒ {



468
# File 'sig/openai/models/admin/organization/usage_code_interpreter_sessions_response.rbs', line 468

def to_hash: -> {