Class: OpenAI::Models::Webhooks::FineTuningJobSucceededWebhookEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rb,
sig/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rbs

Defined Under Namespace

Modules: Object Classes: Data

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(id:) ⇒ Object

Parameters:

  • id

    The unique ID of the event.

  • created_at

    The Unix timestamp (in seconds) of when the fine-tuning job succeeded.

  • data

    Event data payload.

  • object

    The object of the event. Always event.

  • type

    The type of the event. Always fine_tuning.job.succeeded.



# File 'lib/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rb', line 37

Instance Attribute Details

#created_atInteger

The Unix timestamp (in seconds) of when the fine-tuning job succeeded.

Returns:

  • (Integer)


17
# File 'lib/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rb', line 17

required :created_at, Integer

#dataOpenAI::Webhooks::FineTuningJobSucceededWebhookEvent::Data

Event data payload.

Returns:

  • (OpenAI::Webhooks::FineTuningJobSucceededWebhookEvent::Data)


23
# File 'lib/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rb', line 23

required :data, -> { OpenAI::Webhooks::FineTuningJobSucceededWebhookEvent::Data }

#idString

The unique ID of the event.

Returns:

  • (String)


11
# File 'lib/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rb', line 11

required :id, String

#objectOpenAI::Models::Webhooks::FineTuningJobSucceededWebhookEvent::object?

The object of the event. Always event.

Returns:

  • (OpenAI::Models::Webhooks::FineTuningJobSucceededWebhookEvent::object, nil)


35
# File 'lib/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rb', line 35

optional :object, enum: -> { OpenAI::Webhooks::FineTuningJobSucceededWebhookEvent::Object }

#type:"fine_tuning.job.succeeded"

The type of the event. Always fine_tuning.job.succeeded.

Returns:

  • (:"fine_tuning.job.succeeded")


29
# File 'lib/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rb', line 29

required :type, const: :"fine_tuning.job.succeeded"

Instance Method Details

#to_hash{

Returns:

  • ({)


52
# File 'sig/openai/models/webhooks/fine_tuning_job_succeeded_webhook_event.rbs', line 52

def to_hash: -> {