Module: Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThread::Agent
- Extended by:
- Internal::Type::Union
- Defined in:
- lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb,
sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs
Overview
Resolved agent definition for this thread. Snapshot of the agent at thread creation time.
Defined Under Namespace
Modules: Type
Class Method Summary collapse
-
.new(type:, **args) ⇒ Anthropic::Models::Beta::BetaManagedAgentsSessionThreadAgent, ...
Creates a new instance of the variant class whose
typematches the given value, passing the remaining arguments to its constructor. - .values ⇒ Array<Symbol>
- .variants ⇒ Array(Anthropic::Models::Beta::BetaManagedAgentsSessionThreadAgent, Anthropic::Models::Beta::BetaManagedAgentsAdvisor, Anthropic::Models::Beta::Sessions::BetaManagedAgentsInlineAgent)
Methods included from Internal::Type::Union
==, ===, coerce, derefed_variants, dump, hash, inspect, to_sorbet_type
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
Class Method Details
.new(type:, id:, description:, execution_identity:, mcp_servers:, model:, name:, skills:, system_:, tools:, version:) ⇒ Anthropic::Beta::BetaManagedAgentsSessionThreadAgent .new(type:, model:) ⇒ Anthropic::Beta::BetaManagedAgentsAdvisor .new(type:, description:, execution_identity:, mcp_servers:, model:, name:, skills:, system_:, tools:) ⇒ Anthropic::Beta::Sessions::BetaManagedAgentsInlineAgent .new(type:, model:, id:, description:, execution_identity:, mcp_servers:, name:, skills:, system_:, tools:, version:) ⇒ Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThread::agent
Creates a new instance of the variant class whose type matches the given
value, passing the remaining arguments to its constructor.
Some parameter documentations has been truncated, see Anthropic::Models::Beta::Sessions::BetaManagedAgentsSessionThread::Agent for more details.
181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb', line 181 def self.new(type:, **args) case type.to_sym when :agent Anthropic::Beta::BetaManagedAgentsSessionThreadAgent.new(**args) when :advisor Anthropic::Beta::BetaManagedAgentsAdvisor.new(**args) when :inline Anthropic::Beta::Sessions::BetaManagedAgentsInlineAgent.new(**args) else raise ArgumentError, "unknown type: #{type}" end end |
.values ⇒ Array<Symbol>
|
|
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb', line 141
|
.variants ⇒ Array(Anthropic::Models::Beta::BetaManagedAgentsSessionThreadAgent, Anthropic::Models::Beta::BetaManagedAgentsAdvisor, Anthropic::Models::Beta::Sessions::BetaManagedAgentsInlineAgent)
|
|
# File 'lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb', line 145
|