Class: OpenAI::Models::Webhooks::AgentSessionCreatedWebhookEvent::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Webhooks::AgentSessionCreatedWebhookEvent::Data
- Defined in:
- lib/openai/models/webhooks/agent_session_created_webhook_event.rb,
sig/openai/models/webhooks/agent_session_created_webhook_event.rbs
Overview
Defined Under Namespace
Classes: Connect
Instance Attribute Summary collapse
- #connect ⇒ OpenAI::Models::Webhooks::AgentSessionCreatedWebhookEvent::Data::Connect?
-
#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:, connect: nil, environment_id: nil) ⇒ Data
constructor
A new instance of Data.
- #to_hash ⇒ { id: String, environment_type: String, ?connect: OpenAI::Webhooks::AgentSessionCreatedWebhookEvent::Data::Connect, ?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:, connect: nil, environment_id: nil) ⇒ Data
Returns a new instance of Data.
|
|
# File 'lib/openai/models/webhooks/agent_session_created_webhook_event.rb', line 78
|
Instance Attribute Details
#connect ⇒ OpenAI::Models::Webhooks::AgentSessionCreatedWebhookEvent::Data::Connect?
70 |
# File 'lib/openai/models/webhooks/agent_session_created_webhook_event.rb', line 70 optional :connect, -> { OpenAI::Webhooks::AgentSessionCreatedWebhookEvent::Data::Connect } |
#environment_id ⇒ String?
The ID of the environment, when one exists.
76 |
# File 'lib/openai/models/webhooks/agent_session_created_webhook_event.rb', line 76 optional :environment_id, String |
#environment_type ⇒ String
The environment type: none, openai_hosted, or self_hosted.
65 |
# File 'lib/openai/models/webhooks/agent_session_created_webhook_event.rb', line 65 required :environment_type, String |
#id ⇒ String
The ID of the session.
59 |
# File 'lib/openai/models/webhooks/agent_session_created_webhook_event.rb', line 59 required :id, String |
Instance Method Details
#to_hash ⇒ { id: String, environment_type: String, ?connect: OpenAI::Webhooks::AgentSessionCreatedWebhookEvent::Data::Connect, ?environment_id: String }
92 93 94 95 96 97 |
# File 'sig/openai/models/webhooks/agent_session_created_webhook_event.rbs', line 92 def to_hash: -> { id: String, environment_type: String, ?connect: OpenAI::Webhooks::AgentSessionCreatedWebhookEvent::Data::Connect, ?environment_id: String } |