Class: OpenAI::Models::Beta::Agents::AutomationTargetParam::NewSession
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Agents::AutomationTargetParam::NewSession
- Defined in:
- lib/openai/models/beta/agents/automation_target_param.rb,
sig/openai/models/beta/agents/automation_target_param.rbs
Defined Under Namespace
Classes: Agent
Instance Attribute Summary collapse
-
#agent ⇒ OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent?
Inline agent configuration.
-
#agent_id ⇒ String?
A saved agent ID.
-
#environment ⇒ OpenAI::Models::Beta::environment_param
The execution environment for each new session.
-
#input ⇒ ::Array[OpenAI::Beta::AgentSessionInputMessageParam]
Initial user messages submitted with 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]?
The IDs of vaults made available to each new session.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(environment:, input:, agent: nil, agent_id: nil, metadata: nil, vault_ids: nil, type: :new_session) ⇒ NewSession
constructor
A new instance of NewSession.
- #to_hash ⇒ { environment: OpenAI::Models::Beta::environment_param, input: ::Array[OpenAI::Beta::AgentSessionInputMessageParam], ?type: :new_session, ?agent: OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent, ?agent_id: String, ?metadata: ::Hash[Symbol, String]?, ?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(environment:, input:, agent: nil, agent_id: nil, metadata: nil, vault_ids: nil, type: :new_session) ⇒ NewSession
Returns a new instance of NewSession.
|
|
# File 'lib/openai/models/beta/agents/automation_target_param.rb', line 62
|
Instance Attribute Details
#agent ⇒ OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent?
Inline agent configuration. Provide exactly one of agent and agent_id.
42 |
# File 'lib/openai/models/beta/agents/automation_target_param.rb', line 42 optional :agent, -> { OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent } |
#agent_id ⇒ String?
A saved agent ID. Provide exactly one of agent and agent_id.
48 |
# File 'lib/openai/models/beta/agents/automation_target_param.rb', line 48 optional :agent_id, String |
#environment ⇒ OpenAI::Models::Beta::environment_param
The execution environment for each new session.
24 |
# File 'lib/openai/models/beta/agents/automation_target_param.rb', line 24 required :environment, union: -> { OpenAI::Beta::EnvironmentParam } |
#input ⇒ ::Array[OpenAI::Beta::AgentSessionInputMessageParam]
Initial user messages submitted with each new session.
30 |
# File 'lib/openai/models/beta/agents/automation_target_param.rb', line 30 required :input, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Beta::AgentSessionInputMessageParam] } |
#metadata ⇒ ::Hash[Symbol, String]?
Metadata attached to each new session.
54 |
# File 'lib/openai/models/beta/agents/automation_target_param.rb', line 54 optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#type ⇒ :new_session
The type of the object. Always new_session.
36 |
# File 'lib/openai/models/beta/agents/automation_target_param.rb', line 36 required :type, const: :new_session |
#vault_ids ⇒ ::Array[String]?
The IDs of vaults made available to each new session.
60 |
# File 'lib/openai/models/beta/agents/automation_target_param.rb', line 60 optional :vault_ids, OpenAI::Internal::Type::ArrayOf[String], nil?: true |
Instance Method Details
#to_hash ⇒ { environment: OpenAI::Models::Beta::environment_param, input: ::Array[OpenAI::Beta::AgentSessionInputMessageParam], ?type: :new_session, ?agent: OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent, ?agent_id: String, ?metadata: ::Hash[Symbol, String]?, ?vault_ids: ::Array[String]? }
77 78 79 80 81 82 83 84 85 |
# File 'sig/openai/models/beta/agents/automation_target_param.rbs', line 77
def to_hash: -> {
environment: OpenAI::Models::Beta::environment_param,
input: ::Array[OpenAI::Beta::AgentSessionInputMessageParam],
?type: :new_session,
?agent: OpenAI::Beta::Agents::AutomationTargetParam::NewSession::Agent,
?agent_id: String,
?metadata: ::Hash[Symbol, String]?,
?vault_ids: ::Array[String]?
}
|