Class: OpenAI::Models::Webhooks::AgentEnvironmentReadyWebhookEvent
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Webhooks::AgentEnvironmentReadyWebhookEvent
- Defined in:
- lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb,
sig/openai/models/webhooks/agent_environment_ready_webhook_event.rbs
Defined Under Namespace
Classes: Data
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
The Unix timestamp, in seconds, when the event was created.
-
#data ⇒ OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data
Identifies the environment whose lifecycle changed.
-
#id ⇒ String
The unique ID of the event.
-
#object ⇒ :event
The object type.
-
#type ⇒ :"agent.environment.ready"
The event type.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, created_at:, data:, object: :event, type: :"agent.environment.ready") ⇒ AgentEnvironmentReadyWebhookEvent
constructor
A new instance of AgentEnvironmentReadyWebhookEvent.
- #to_hash ⇒ { id: String, created_at: Integer, data: OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data, ?object: :event, ?type: :"agent.environment.ready" }
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:, created_at:, data:, object: :event, type: :"agent.environment.ready") ⇒ AgentEnvironmentReadyWebhookEvent
Returns a new instance of AgentEnvironmentReadyWebhookEvent.
|
|
# File 'lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb', line 37
|
Instance Attribute Details
#created_at ⇒ Integer
The Unix timestamp, in seconds, when the event was created.
17 |
# File 'lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb', line 17 required :created_at, Integer |
#data ⇒ OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data
Identifies the environment whose lifecycle changed.
23 |
# File 'lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb', line 23 required :data, -> { OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data } |
#id ⇒ String
The unique ID of the event.
11 |
# File 'lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb', line 11 required :id, String |
#object ⇒ :event
The object type. Always event.
29 |
# File 'lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb', line 29 required :object, const: :event |
#type ⇒ :"agent.environment.ready"
The event type. Always agent.environment.ready.
35 |
# File 'lib/openai/models/webhooks/agent_environment_ready_webhook_event.rb', line 35 required :type, const: :"agent.environment.ready" |
Instance Method Details
#to_hash ⇒ { id: String, created_at: Integer, data: OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data, ?object: :event, ?type: :"agent.environment.ready" }
47 48 49 50 51 52 53 |
# File 'sig/openai/models/webhooks/agent_environment_ready_webhook_event.rbs', line 47
def to_hash: -> {
id: String,
created_at: Integer,
data: OpenAI::Webhooks::AgentEnvironmentReadyWebhookEvent::Data,
?object: :event,
?type: :"agent.environment.ready"
}
|