Class: OpenAI::Models::Webhooks::AgentSessionIdleWebhookEvent::Data

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

Overview

See Also:

  • OpenAI::Models::Webhooks::AgentSessionIdleWebhookEvent#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_cached, coerce_with_error, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, resolve_type, 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:, environment_type:, environment_id: nil) ⇒ Data

Returns a new instance of Data.

Parameters:

  • id —

    The ID of the session.

  • environment_type —

    The environment type: none, openai_hosted, or self_hosted.

  • environment_id (defaults to: nil) —

    The ID of the environment, when one exists.

  • id: (String)
  • environment_type: (String)
  • environment_id: (String) (defaults to: nil)


# File 'lib/openai/models/webhooks/agent_session_idle_webhook_event.rb', line 73

Instance Attribute Details

#environment_id ⇒ String?

The ID of the environment, when one exists.

Returns:

  • (String, nil)


71
# File 'lib/openai/models/webhooks/agent_session_idle_webhook_event.rb', line 71

optional :environment_id, String

#environment_type ⇒ String

The environment type: none, openai_hosted, or self_hosted.

Returns:

  • (String)


65
# File 'lib/openai/models/webhooks/agent_session_idle_webhook_event.rb', line 65

required :environment_type, String

#id ⇒ String

The ID of the session.

Returns:

  • (String)


59
# File 'lib/openai/models/webhooks/agent_session_idle_webhook_event.rb', line 59

required :id, String

Instance Method Details

#to_hash ⇒ { id: String, environment_type: String, ?environment_id: String }

Returns:

  • ({ id: String, environment_type: String, ?environment_id: String })


80
81
82
83
84
# File 'sig/openai/models/webhooks/agent_session_idle_webhook_event.rbs', line 80

def to_hash: -> {
  id: String,
  environment_type: String,
  ?environment_id: String
}