Class: OpenAI::Models::Live::DelegationCreatedEvent::Delegation
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Live::DelegationCreatedEvent::Delegation
- Defined in:
- lib/openai/models/live/delegation_created_event.rb,
sig/openai/models/live/delegation_created_event.rbs
Overview
Defined Under Namespace
Modules: Target
Instance Attribute Summary collapse
-
#id ⇒ String
The unique ID of the delegation.
-
#response_id ⇒ String?
The ID of the Responses API response associated with a Responses delegation.
-
#target ⇒ Symbol, OpenAI::Models::Live::DelegationCreatedEvent::Delegation::Target
Where the Live model delegated the work:
clientfor your application, orresponsesfor the configured Responses backend. -
#type ⇒ Symbol, :delegation
The object type, always
delegation.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, target:, response_id: nil, type: :delegation) ⇒ Object
constructor
The delegated work identifier and destination.
- #to_hash ⇒ {
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:, target:, response_id: nil, type: :delegation) ⇒ Object
The delegated work identifier and destination. This object contains metadata, not the task text.
|
|
# File 'lib/openai/models/live/delegation_created_event.rb', line 92
|
Instance Attribute Details
#id ⇒ String
The unique ID of the delegation. Use this as delegation_id when replying to client-owned work or correlating Responses events.
70 |
# File 'lib/openai/models/live/delegation_created_event.rb', line 70 required :id, String |
#response_id ⇒ String?
The ID of the Responses API response associated with a Responses delegation. Omitted for client delegations.
90 |
# File 'lib/openai/models/live/delegation_created_event.rb', line 90 optional :response_id, String |
#target ⇒ Symbol, OpenAI::Models::Live::DelegationCreatedEvent::Delegation::Target
Where the Live model delegated the work: client for your application, or
responses for the configured Responses backend.
77 |
# File 'lib/openai/models/live/delegation_created_event.rb', line 77 required :target, union: -> { OpenAI::Live::DelegationCreatedEvent::Delegation::Target } |
#type ⇒ Symbol, :delegation
The object type, always delegation.
83 |
# File 'lib/openai/models/live/delegation_created_event.rb', line 83 required :type, const: :delegation |
Instance Method Details
#to_hash ⇒ {
68 |
# File 'sig/openai/models/live/delegation_created_event.rbs', line 68
def to_hash: -> {
|