Class: Anthropic::Models::Beta::BetaManagedAgentsSessionAgentUpdate

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb

Defined Under Namespace

Modules: Tool

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, 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(mcp_servers: nil, tools: nil) ⇒ Object

Some parameter documentations has been truncated, see Anthropic::Models::Beta::BetaManagedAgentsSessionAgentUpdate for more details.

Mid-session agent configuration update. Only ‘tools` and `mcp_servers` are updatable. Full replacement: the provided array becomes the new value. To preserve existing entries, GET the session, modify the array, and POST it back.

Parameters:



# File 'lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb', line 23

Instance Attribute Details

#mcp_serversArray<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>?

Replacement MCP server list. Full replacement: the provided array becomes the new value. Send an empty array to clear; omit to preserve.



12
13
# File 'lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb', line 12

optional :mcp_servers,
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaManagedAgentsURLMCPServerParams] }

#toolsArray<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>?

Replacement tool list. Full replacement: the provided array becomes the new value. Send an empty array to clear; omit to preserve.



20
21
# File 'lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb', line 20

optional :tools,
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSessionAgentUpdate::Tool] }