Class: OpenAI::Models::Beta::Agents::AutomationTarget::ExistingSession

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/agents/automation_target.rb,
sig/openai/models/beta/agents/automation_target.rbs

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(instructions:, session_id:, type: :existing_session) ⇒ ExistingSession

Returns a new instance of ExistingSession.

Parameters:

  • instructions —

    Saved instructions delivered as an automation notification.

  • session_id —

    The session receiving each invocation.

  • type (defaults to: :existing_session) —

    The type of the object. Always existing_session.

  • instructions: (String)
  • session_id: (String)
  • type: (:existing_session) (defaults to: :existing_session)


# File 'lib/openai/models/beta/agents/automation_target.rb', line 136

Instance Attribute Details

#instructions ⇒ String

Saved instructions delivered as an automation notification.

Returns:

  • (String)


122
# File 'lib/openai/models/beta/agents/automation_target.rb', line 122

required :instructions, String

#session_id ⇒ String

The session receiving each invocation.

Returns:

  • (String)


128
# File 'lib/openai/models/beta/agents/automation_target.rb', line 128

required :session_id, String

#type ⇒ :existing_session

The type of the object. Always existing_session.

Returns:

  • (:existing_session)


134
# File 'lib/openai/models/beta/agents/automation_target.rb', line 134

required :type, const: :existing_session

Instance Method Details

#to_hash ⇒ { instructions: String, session_id: String, ?type: :existing_session }

Returns:

  • ({ instructions: String, session_id: String, ?type: :existing_session })


145
146
147
148
149
# File 'sig/openai/models/beta/agents/automation_target.rbs', line 145

def to_hash: -> {
  instructions: String,
  session_id: String,
  ?type: :existing_session
}