Class: OpenAI::Models::Beta::AgentCreateParams
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::AgentCreateParams
- Extended by:
- Internal::Type::RequestParameters::Converter
- Includes:
- Internal::Type::RequestParameters
- Defined in:
- lib/openai/models/beta/agent_create_params.rb,
sig/openai/models/beta/agent_create_params.rbs
Overview
Defined Under Namespace
Modules: ServiceTier Classes: Compaction, Experimental
Instance Attribute Summary collapse
-
#compaction ⇒ OpenAI::Beta::AgentCreateParams::Compaction?
Context compaction settings.
-
#experimental ⇒ OpenAI::Beta::AgentCreateParams::Experimental?
Experimental agent settings.
-
#instructions ⇒ String?
Additional instructions appended to the agent's default base instructions.
-
#metadata ⇒ ::Hash[Symbol, String]?
Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters.
-
#model ⇒ String
The model to use for the agent.
-
#multi_agent ⇒ OpenAI::Beta::MultiAgentConfigParam?
Configuration for creating and coordinating subagents.
-
#name ⇒ String?
A human-readable name for the agent.
-
#reasoning ⇒ OpenAI::Beta::AgentReasoningParam?
Configuration for model reasoning.
-
#service_tier ⇒ OpenAI::Models::Beta::AgentCreateParams::service_tier?
The service tier used for model requests.
-
#text ⇒ OpenAI::Beta::AgentTextParam?
Configuration for generated text.
-
#tools ⇒ ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?
Tools available to the agent.
Attributes included from Internal::Type::RequestParameters
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(time_awareness: nil) ⇒ AgentCreateParams
constructor
A new instance of AgentCreateParams.
- #to_hash ⇒ { model: String, ?compaction: OpenAI::Beta::AgentCreateParams::Compaction?, ?experimental: OpenAI::Beta::AgentCreateParams::Experimental, ?instructions: String?, ?metadata: ::Hash[Symbol, String]?, ?multi_agent: OpenAI::Beta::MultiAgentConfigParam?, ?name: String?, ?reasoning: OpenAI::Beta::AgentReasoningParam?, ?service_tier: OpenAI::Models::Beta::AgentCreateParams::service_tier?, ?text: OpenAI::Beta::AgentTextParam?, ?tools: ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?, ?request_options: OpenAI::RequestOptions }
Methods included from Internal::Type::RequestParameters::Converter
Methods included from Internal::Type::RequestParameters
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(time_awareness: nil) ⇒ AgentCreateParams
Returns a new instance of AgentCreateParams.
|
|
# File 'lib/openai/models/beta/agent_create_params.rb', line 136
|
Instance Attribute Details
#compaction ⇒ OpenAI::Beta::AgentCreateParams::Compaction?
Context compaction settings. Omission or null uses blocking compaction.
21 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 21 optional :compaction, -> { OpenAI::Beta::AgentCreateParams::Compaction }, nil?: true |
#experimental ⇒ OpenAI::Beta::AgentCreateParams::Experimental?
Experimental agent settings. All experimental features default to disabled.
27 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 27 optional :experimental, -> { OpenAI::Beta::AgentCreateParams::Experimental } |
#instructions ⇒ String?
Additional instructions appended to the agent's default base instructions. Omit or set to null to add no custom instructions.
34 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 34 optional :instructions, String, nil?: true |
#metadata ⇒ ::Hash[Symbol, String]?
Up to 16 string key-value pairs, with keys up to 64 and values up to 512 characters. Omission or null defaults to an empty map.
41 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 41 optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true |
#model ⇒ String
The model to use for the agent. The requested model name is preserved.
15 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 15 required :model, String |
#multi_agent ⇒ OpenAI::Beta::MultiAgentConfigParam?
Configuration for creating and coordinating subagents. Subagent tools are disabled by default.
48 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 48 optional :multi_agent, -> { OpenAI::Beta::MultiAgentConfigParam }, nil?: true |
#name ⇒ String?
A human-readable name for the agent. Omission or null leaves the agent unnamed.
54 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 54 optional :name, String, nil?: true |
#reasoning ⇒ OpenAI::Beta::AgentReasoningParam?
Configuration for model reasoning. Omission uses the model's default effort.
60 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 60 optional :reasoning, -> { OpenAI::Beta::AgentReasoningParam }, nil?: true |
#service_tier ⇒ OpenAI::Models::Beta::AgentCreateParams::service_tier?
The service tier used for model requests. Defaults to auto.
66 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 66 optional :service_tier, enum: -> { OpenAI::Beta::AgentCreateParams::ServiceTier }, nil?: true |
#text ⇒ OpenAI::Beta::AgentTextParam?
Configuration for generated text. Defaults to the text format and medium
verbosity.
73 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 73 optional :text, -> { OpenAI::Beta::AgentTextParam }, nil?: true |
#tools ⇒ ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?
Tools available to the agent. Defaults to an empty list. The tool list must fit within 3 MiB (3,145,728 bytes) of compact UTF-8 JSON.
80 81 82 83 84 |
# File 'lib/openai/models/beta/agent_create_params.rb', line 80 optional( :tools, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::Beta::PersistedAgentToolParam] }, nil?: true ) |
Instance Method Details
#to_hash ⇒ { model: String, ?compaction: OpenAI::Beta::AgentCreateParams::Compaction?, ?experimental: OpenAI::Beta::AgentCreateParams::Experimental, ?instructions: String?, ?metadata: ::Hash[Symbol, String]?, ?multi_agent: OpenAI::Beta::MultiAgentConfigParam?, ?name: String?, ?reasoning: OpenAI::Beta::AgentReasoningParam?, ?service_tier: OpenAI::Models::Beta::AgentCreateParams::service_tier?, ?text: OpenAI::Beta::AgentTextParam?, ?tools: ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?, ?request_options: OpenAI::RequestOptions }
109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'sig/openai/models/beta/agent_create_params.rbs', line 109
def to_hash: -> {
model: String,
?compaction: OpenAI::Beta::AgentCreateParams::Compaction?,
?experimental: OpenAI::Beta::AgentCreateParams::Experimental,
?instructions: String?,
?metadata: ::Hash[Symbol, String]?,
?multi_agent: OpenAI::Beta::MultiAgentConfigParam?,
?name: String?,
?reasoning: OpenAI::Beta::AgentReasoningParam?,
?service_tier: OpenAI::Models::Beta::AgentCreateParams::service_tier?,
?text: OpenAI::Beta::AgentTextParam?,
?tools: ::Array[OpenAI::Models::Beta::persisted_agent_tool_param]?,
?request_options: OpenAI::RequestOptions
}
|