Class: OpenAI::Models::Webhooks::AgentSessionInProgressWebhookEvent::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Webhooks::AgentSessionInProgressWebhookEvent::Data
- Defined in:
- lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb,
sig/openai/models/webhooks/agent_session_in_progress_webhook_event.rbs
Overview
Instance Attribute Summary collapse
-
#environment_id ⇒ String?
The ID of the environment, when one exists.
-
#environment_type ⇒ String
The environment type:
none,openai_hosted, orself_hosted. -
#id ⇒ String
The ID of the session.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, environment_type:, environment_id: nil) ⇒ Data
constructor
A new instance of Data.
- #to_hash ⇒ { id: String, environment_type: String, ?environment_id: String }
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.
|
|
# File 'lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb', line 73
|
Instance Attribute Details
#environment_id ⇒ String?
The ID of the environment, when one exists.
71 |
# File 'lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb', line 71 optional :environment_id, String |
#environment_type ⇒ String
The environment type: none, openai_hosted, or self_hosted.
65 |
# File 'lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb', line 65 required :environment_type, String |
#id ⇒ String
The ID of the session.
59 |
# File 'lib/openai/models/webhooks/agent_session_in_progress_webhook_event.rb', line 59 required :id, String |
Instance Method Details
#to_hash ⇒ { id: String, environment_type: String, ?environment_id: String }
80 81 82 83 84 |
# File 'sig/openai/models/webhooks/agent_session_in_progress_webhook_event.rbs', line 80
def to_hash: -> {
id: String,
environment_type: String,
?environment_id: String
}
|