Class: OpenAI::Models::Beta::Agents::AutomationTarget::NewSession
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Agents::AutomationTarget::NewSession
- Defined in:
- lib/openai/models/beta/agents/automation_target.rb,
sig/openai/models/beta/agents/automation_target.rbs
Defined Under Namespace
Classes: Input
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Beta::Agents::AutomationAgentConfig?
The inline agent configuration, or null when agent_id is configured.
-
#agent_id ⇒ String?
The saved agent reference, or null when an inline agent is configured.
-
#environment ⇒ OpenAI::Models::Beta::Agents::automation_environment
Configuration or references used to select the execution environment.
-
#input ⇒ ::Array[OpenAI::Beta::Agents::AutomationTarget::NewSession::Input]
Initial input delivered to each new session.
-
#metadata ⇒ ::Hash[Symbol, String]
Metadata attached to each new session.
-
#type ⇒ :new_session
The type of the object.
-
#vault_ids ⇒ ::Array[String]
Vaults made available to each new session.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize ⇒ NewSession
constructor
A new instance of NewSession.
- #to_hash ⇒ { agent: OpenAI::Beta::Agents::AutomationAgentConfig?, agent_id: String?, environment: OpenAI::Models::Beta::Agents::automation_environment, input: ::Array[OpenAI::Beta::Agents::AutomationTarget::NewSession::Input], metadata: ::Hash[Symbol, String], ?type: :new_session, vault_ids: ::Array[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 ⇒ NewSession
Returns a new instance of NewSession.
59 60 61 62 63 64 65 66 67 |
# File 'sig/openai/models/beta/agents/automation_target.rbs', line 59
def initialize: (
agent: OpenAI::Beta::Agents::AutomationAgentConfig?,
agent_id: String?,
environment: OpenAI::Models::Beta::Agents::automation_environment,
input: ::Array[OpenAI::Beta::Agents::AutomationTarget::NewSession::Input],
metadata: ::Hash[Symbol, String],
vault_ids: ::Array[String],
?type: :new_session
) -> void
|
Instance Attribute Details
#agent ⇒ OpenAI::Beta::Agents::AutomationAgentConfig?
The inline agent configuration, or null when agent_id is configured.
22 |
# File 'lib/openai/models/beta/agents/automation_target.rb', line 22 required :agent, -> { OpenAI::Beta::Agents::AutomationAgentConfig }, nil?: true |
#agent_id ⇒ String?
The saved agent reference, or null when an inline agent is configured.
28 |
# File 'lib/openai/models/beta/agents/automation_target.rb', line 28 required :agent_id, String, nil?: true |
#environment ⇒ OpenAI::Models::Beta::Agents::automation_environment
Configuration or references used to select the execution environment.
34 |
# File 'lib/openai/models/beta/agents/automation_target.rb', line 34 required :environment, union: -> { OpenAI::Beta::Agents::AutomationEnvironment } |
#input ⇒ ::Array[OpenAI::Beta::Agents::AutomationTarget::NewSession::Input]
Initial input delivered to each new session.
40 41 42 43 |
# File 'lib/openai/models/beta/agents/automation_target.rb', line 40 required( :input, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::Agents::AutomationTarget::NewSession::Input] } ) |
#metadata ⇒ ::Hash[Symbol, String]
Metadata attached to each new session.
49 |
# File 'lib/openai/models/beta/agents/automation_target.rb', line 49 required :metadata, OpenAI::Internal::Type::HashOf[String] |
#type ⇒ :new_session
The type of the object. Always new_session.
55 |
# File 'lib/openai/models/beta/agents/automation_target.rb', line 55 required :type, const: :new_session |
#vault_ids ⇒ ::Array[String]
Vaults made available to each new session.
61 |
# File 'lib/openai/models/beta/agents/automation_target.rb', line 61 required :vault_ids, OpenAI::Internal::Type::ArrayOf[String] |
Instance Method Details
#to_hash ⇒ { agent: OpenAI::Beta::Agents::AutomationAgentConfig?, agent_id: String?, environment: OpenAI::Models::Beta::Agents::automation_environment, input: ::Array[OpenAI::Beta::Agents::AutomationTarget::NewSession::Input], metadata: ::Hash[Symbol, String], ?type: :new_session, vault_ids: ::Array[String] }
69 70 71 72 73 74 75 76 77 |
# File 'sig/openai/models/beta/agents/automation_target.rbs', line 69
def to_hash: -> {
agent: OpenAI::Beta::Agents::AutomationAgentConfig?,
agent_id: String?,
environment: OpenAI::Models::Beta::Agents::automation_environment,
input: ::Array[OpenAI::Beta::Agents::AutomationTarget::NewSession::Input],
metadata: ::Hash[Symbol, String],
?type: :new_session,
vault_ids: ::Array[String]
}
|