anthropic 1.41.0 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/anthropic/internal/stream.rb +1 -1
- data/lib/anthropic/models/beta/beta_compaction_block_param.rb +9 -9
- data/lib/anthropic/models/beta/beta_environment.rb +49 -5
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_bash_input.rb +46 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_edit_input.rb +52 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_glob_input.rb +37 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_grep_input.rb +36 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_read_input.rb +36 -0
- data/lib/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_write_input.rb +31 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_agent_update.rb +58 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rb +3 -3
- data/lib/anthropic/models/beta/beta_managed_agents_session_thread_agent.rb +133 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session_updated_event.rb +79 -0
- data/lib/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rb +113 -0
- data/lib/anthropic/models/beta/beta_self_hosted_config.rb +22 -0
- data/lib/anthropic/models/beta/beta_self_hosted_config_params.rb +22 -0
- data/lib/anthropic/models/beta/environment_create_params.rb +49 -7
- data/lib/anthropic/models/beta/environment_update_params.rb +47 -7
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work.rb +135 -0
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rb +71 -0
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_list_response.rb +31 -0
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rb +63 -0
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_stop_request.rb +22 -0
- data/lib/anthropic/models/beta/environments/beta_self_hosted_work_update_request.rb +27 -0
- data/lib/anthropic/models/beta/environments/beta_session_work_data.rb +33 -0
- data/lib/anthropic/models/beta/environments/work_ack_params.rb +40 -0
- data/lib/anthropic/models/beta/environments/work_heartbeat_params.rb +62 -0
- data/lib/anthropic/models/beta/environments/work_list_params.rb +49 -0
- data/lib/anthropic/models/beta/environments/work_poll_params.rb +64 -0
- data/lib/anthropic/models/beta/environments/work_retrieve_params.rb +40 -0
- data/lib/anthropic/models/beta/environments/work_stats_params.rb +33 -0
- data/lib/anthropic/models/beta/environments/work_stop_params.rb +40 -0
- data/lib/anthropic/models/beta/environments/work_update_params.rb +40 -0
- data/lib/anthropic/models/beta/session_update_params.rb +11 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_event_params.rb +4 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rb +6 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_event.rb +7 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rb +3 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rb +7 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rb +7 -1
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rb +88 -0
- data/lib/anthropic/models/beta/sessions/event_send_params.rb +2 -2
- data/lib/anthropic/models/beta/skills/version_download_params.rb +49 -0
- data/lib/anthropic/resources/beta/environments/work.rb +320 -0
- data/lib/anthropic/resources/beta/environments.rb +12 -4
- data/lib/anthropic/resources/beta/sessions/events.rb +3 -3
- data/lib/anthropic/resources/beta/sessions/threads/events.rb +2 -2
- data/lib/anthropic/resources/beta/sessions.rb +3 -1
- data/lib/anthropic/resources/beta/skills/versions.rb +33 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +30 -1
- data/rbi/anthropic/models/beta/beta_compaction_block_param.rbi +8 -8
- data/rbi/anthropic/models/beta/beta_environment.rbi +82 -10
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_bash_input.rbi +73 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_edit_input.rbi +76 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_glob_input.rbi +50 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_grep_input.rbi +48 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_read_input.rbi +54 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_write_input.rbi +45 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_agent_update.rbi +144 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbi +3 -7
- data/rbi/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbi +232 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session_updated_event.rbi +139 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbi +197 -0
- data/rbi/anthropic/models/beta/beta_self_hosted_config.rbi +35 -0
- data/rbi/anthropic/models/beta/beta_self_hosted_config_params.rbi +35 -0
- data/rbi/anthropic/models/beta/environment_create_params.rbi +107 -15
- data/rbi/anthropic/models/beta/environment_update_params.rbi +104 -15
- data/rbi/anthropic/models/beta/environments/beta_self_hosted_work.rbi +202 -0
- data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rbi +133 -0
- data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_list_response.rbi +59 -0
- data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rbi +83 -0
- data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_stop_request.rbi +38 -0
- data/rbi/anthropic/models/beta/environments/beta_self_hosted_work_update_request.rbi +43 -0
- data/rbi/anthropic/models/beta/environments/beta_session_work_data.rbi +44 -0
- data/rbi/anthropic/models/beta/environments/work_ack_params.rbi +77 -0
- data/rbi/anthropic/models/beta/environments/work_heartbeat_params.rbi +99 -0
- data/rbi/anthropic/models/beta/environments/work_list_params.rbi +90 -0
- data/rbi/anthropic/models/beta/environments/work_poll_params.rbi +106 -0
- data/rbi/anthropic/models/beta/environments/work_retrieve_params.rbi +77 -0
- data/rbi/anthropic/models/beta/environments/work_stats_params.rbi +71 -0
- data/rbi/anthropic/models/beta/environments/work_stop_params.rbi +77 -0
- data/rbi/anthropic/models/beta/environments/work_update_params.rbi +77 -0
- data/rbi/anthropic/models/beta/session_update_params.rbi +23 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbi +6 -3
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbi +3 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbi +4 -9
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbi +3 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbi +3 -1
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbi +180 -0
- data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +6 -3
- data/rbi/anthropic/models/beta/skills/version_download_params.rbi +89 -0
- data/rbi/anthropic/resources/beta/environments/work.rbi +256 -0
- data/rbi/anthropic/resources/beta/environments.rbi +36 -8
- data/rbi/anthropic/resources/beta/sessions/events.rbi +2 -1
- data/rbi/anthropic/resources/beta/sessions.rbi +6 -0
- data/rbi/anthropic/resources/beta/skills/versions.rbi +25 -0
- data/sig/anthropic/models/beta/beta_compaction_block_param.rbs +5 -5
- data/sig/anthropic/models/beta/beta_environment.rbs +36 -6
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_bash_input.rbs +32 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_edit_input.rbs +41 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_glob_input.rbs +22 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_grep_input.rbs +22 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_read_input.rbs +25 -0
- data/sig/anthropic/models/beta/beta_managed_agents_agent_toolset20260401_write_input.rbs +20 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_agent_update.rbs +48 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_multiagent_coordinator.rbs +4 -4
- data/sig/anthropic/models/beta/beta_managed_agents_session_thread_agent.rbs +100 -0
- data/sig/anthropic/models/beta/beta_managed_agents_session_updated_event.rbs +61 -0
- data/sig/anthropic/models/beta/beta_managed_agents_user_tool_result_event.rbs +80 -0
- data/sig/anthropic/models/beta/beta_self_hosted_config.rbs +17 -0
- data/sig/anthropic/models/beta/beta_self_hosted_config_params.rbs +17 -0
- data/sig/anthropic/models/beta/environment_create_params.rbs +30 -4
- data/sig/anthropic/models/beta/environment_update_params.rbs +30 -4
- data/sig/anthropic/models/beta/environments/beta_self_hosted_work.rbs +93 -0
- data/sig/anthropic/models/beta/environments/beta_self_hosted_work_heartbeat_response.rbs +58 -0
- data/sig/anthropic/models/beta/environments/beta_self_hosted_work_list_response.rbs +29 -0
- data/sig/anthropic/models/beta/environments/beta_self_hosted_work_queue_stats.rbs +44 -0
- data/sig/anthropic/models/beta/environments/beta_self_hosted_work_stop_request.rbs +19 -0
- data/sig/anthropic/models/beta/environments/beta_self_hosted_work_update_request.rbs +18 -0
- data/sig/anthropic/models/beta/environments/beta_session_work_data.rbs +19 -0
- data/sig/anthropic/models/beta/environments/work_ack_params.rbs +44 -0
- data/sig/anthropic/models/beta/environments/work_heartbeat_params.rbs +54 -0
- data/sig/anthropic/models/beta/environments/work_list_params.rbs +51 -0
- data/sig/anthropic/models/beta/environments/work_poll_params.rbs +56 -0
- data/sig/anthropic/models/beta/environments/work_retrieve_params.rbs +44 -0
- data/sig/anthropic/models/beta/environments/work_stats_params.rbs +39 -0
- data/sig/anthropic/models/beta/environments/work_stop_params.rbs +48 -0
- data/sig/anthropic/models/beta/environments/work_update_params.rbs +48 -0
- data/sig/anthropic/models/beta/session_update_params.rbs +9 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_event_params.rbs +1 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_send_session_events.rbs +1 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_event.rbs +2 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread.rbs +4 -4
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_events.rbs +2 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_stream_session_thread_events.rbs +2 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_user_tool_result_event_params.rbs +65 -0
- data/sig/anthropic/models/beta/skills/version_download_params.rbs +44 -0
- data/sig/anthropic/resources/beta/environments/work.rbs +73 -0
- data/sig/anthropic/resources/beta/environments.rbs +6 -2
- data/sig/anthropic/resources/beta/sessions.rbs +1 -0
- data/sig/anthropic/resources/beta/skills/versions.rbs +7 -0
- metadata +92 -5
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_thread_agent.rb +0 -133
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_thread_agent.rbi +0 -231
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_thread_agent.rbs +0 -100
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5babf593055aa56b8e86a7cbf3b2485d7b6e0a73d6c44a89ecf3bfa467c7863a
|
|
4
|
+
data.tar.gz: 0a1f49bd358d4bd27ea403115b22da8180af21afbacac24489801074f6815db5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 99b5b9414478942809c6b2a5b26441f236e2322fdca0d310b794ebdd0fec20dcea666330514bb5ec1bf580549a60909890eb09e890f054308ecb2a9b0cdcb028
|
|
7
|
+
data.tar.gz: 720e57337738ec199b4f6eaddd64584d368db6961ffcf91256a598d2ae2638e06ec5dd126b51d46d065b5abd2e25d45f4dcd1c41c098e98c2d84e76205766578
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.42.0 (2026-05-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.41.0...v1.42.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.41.0...v1.42.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **client:** Add support for self-hosted sandboxes in CMA with sandbox helpers ([27813ed](https://github.com/anthropics/anthropic-sdk-ruby/commit/27813ed45134e075b0d1f180d00407c54c34dbe1))
|
|
10
|
+
|
|
3
11
|
## 1.41.0 (2026-05-13)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.40.0...v1.41.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.40.0...v1.41.0)
|
data/README.md
CHANGED
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
unwrapped = Anthropic::Internal::Util.dig(decoded, @unwrap)
|
|
27
27
|
y << Anthropic::Internal::Type::Converter.coerce(@model, unwrapped)
|
|
28
28
|
in {
|
|
29
|
-
event: "message_start" | "message_delta" | "message_stop" | "content_block_start" | "content_block_delta" | "content_block_stop" | "message" | "user.message" | "user.interrupt" | "user.tool_confirmation" | "user.custom_tool_result" | "agent.message" | "agent.thinking" | "agent.tool_use" | "agent.tool_result" | "agent.mcp_tool_use" | "agent.mcp_tool_result" | "agent.custom_tool_use" | "agent.thread_context_compacted" | "session.status_running" | "session.status_idle" | "session.status_rescheduled" | "session.status_terminated" | "session.error" | "session.deleted" | "span.model_request_start" | "span.model_request_end" | "span.outcome_evaluation_start" | "span.outcome_evaluation_ongoing" | "span.outcome_evaluation_end" | "user.define_outcome" | "agent.thread_message_received" | "agent.thread_message_sent" | "agent.session_thread_message_received" | "agent.session_thread_message_sent" | "session.thread_created" | "session.thread_status_created" | "session.thread_status_running" | "session.thread_status_idle" | "session.thread_status_rescheduled" | "session.thread_status_terminated",
|
|
29
|
+
event: "message_start" | "message_delta" | "message_stop" | "content_block_start" | "content_block_delta" | "content_block_stop" | "message" | "user.message" | "user.interrupt" | "user.tool_confirmation" | "user.custom_tool_result" | "user.tool_result" | "agent.message" | "agent.thinking" | "agent.tool_use" | "agent.tool_result" | "agent.mcp_tool_use" | "agent.mcp_tool_result" | "agent.custom_tool_use" | "agent.thread_context_compacted" | "session.status_running" | "session.status_idle" | "session.status_rescheduled" | "session.status_terminated" | "session.error" | "session.deleted" | "session.updated" | "span.model_request_start" | "span.model_request_end" | "span.outcome_evaluation_start" | "span.outcome_evaluation_ongoing" | "span.outcome_evaluation_end" | "user.define_outcome" | "agent.thread_message_received" | "agent.thread_message_sent" | "agent.session_thread_message_received" | "agent.session_thread_message_sent" | "session.thread_created" | "session.thread_status_created" | "session.thread_status_running" | "session.thread_status_idle" | "session.thread_status_rescheduled" | "session.thread_status_terminated",
|
|
30
30
|
data: String => data
|
|
31
31
|
}
|
|
32
32
|
decoded = JSON.parse(data, symbolize_names: true)
|
|
@@ -4,12 +4,6 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaCompactionBlockParam < Anthropic::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute content
|
|
8
|
-
# Summary of previously compacted content, or null if compaction failed
|
|
9
|
-
#
|
|
10
|
-
# @return [String, nil]
|
|
11
|
-
required :content, String, nil?: true
|
|
12
|
-
|
|
13
7
|
# @!attribute type
|
|
14
8
|
#
|
|
15
9
|
# @return [Symbol, :compaction]
|
|
@@ -21,13 +15,19 @@ module Anthropic
|
|
|
21
15
|
# @return [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil]
|
|
22
16
|
optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true
|
|
23
17
|
|
|
18
|
+
# @!attribute content
|
|
19
|
+
# Summary of previously compacted content, or null if compaction failed
|
|
20
|
+
#
|
|
21
|
+
# @return [String, nil]
|
|
22
|
+
optional :content, String, nil?: true
|
|
23
|
+
|
|
24
24
|
# @!attribute encrypted_content
|
|
25
25
|
# Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
26
26
|
#
|
|
27
27
|
# @return [String, nil]
|
|
28
28
|
optional :encrypted_content, String, nil?: true
|
|
29
29
|
|
|
30
|
-
# @!method initialize(
|
|
30
|
+
# @!method initialize(cache_control: nil, content: nil, encrypted_content: nil, type: :compaction)
|
|
31
31
|
# A compaction block containing summary of previous context.
|
|
32
32
|
#
|
|
33
33
|
# Users should round-trip these blocks from responses to subsequent requests to
|
|
@@ -36,10 +36,10 @@ module Anthropic
|
|
|
36
36
|
# When content is None, the block represents a failed compaction. The server
|
|
37
37
|
# treats these as no-ops. Empty string content is not allowed.
|
|
38
38
|
#
|
|
39
|
-
# @param content [String, nil] Summary of previously compacted content, or null if compaction failed
|
|
40
|
-
#
|
|
41
39
|
# @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
|
|
42
40
|
#
|
|
41
|
+
# @param content [String, nil] Summary of previously compacted content, or null if compaction failed
|
|
42
|
+
#
|
|
43
43
|
# @param encrypted_content [String, nil] Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
44
44
|
#
|
|
45
45
|
# @param type [Symbol, :compaction]
|
|
@@ -18,10 +18,10 @@ module Anthropic
|
|
|
18
18
|
required :archived_at, String, nil?: true
|
|
19
19
|
|
|
20
20
|
# @!attribute config
|
|
21
|
-
#
|
|
21
|
+
# Environment configuration (either Anthropic Cloud or self-hosted)
|
|
22
22
|
#
|
|
23
|
-
# @return [Anthropic::Models::Beta::BetaCloudConfig]
|
|
24
|
-
required :config, -> { Anthropic::Beta::
|
|
23
|
+
# @return [Anthropic::Models::Beta::BetaCloudConfig, Anthropic::Models::Beta::BetaSelfHostedConfig]
|
|
24
|
+
required :config, union: -> { Anthropic::Beta::BetaEnvironment::Config }
|
|
25
25
|
|
|
26
26
|
# @!attribute created_at
|
|
27
27
|
# RFC 3339 timestamp when environment was created
|
|
@@ -59,14 +59,24 @@ module Anthropic
|
|
|
59
59
|
# @return [String]
|
|
60
60
|
required :updated_at, String
|
|
61
61
|
|
|
62
|
-
# @!
|
|
62
|
+
# @!attribute scope
|
|
63
|
+
# The visibility scope for this environment. 'organization' means visible to all
|
|
64
|
+
# accounts. 'account' means visible only to the owning account.
|
|
65
|
+
#
|
|
66
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaEnvironment::Scope, nil]
|
|
67
|
+
optional :scope, enum: -> { Anthropic::Beta::BetaEnvironment::Scope }
|
|
68
|
+
|
|
69
|
+
# @!method initialize(id:, archived_at:, config:, created_at:, description:, metadata:, name:, updated_at:, scope: nil, type: :environment)
|
|
70
|
+
# Some parameter documentations has been truncated, see
|
|
71
|
+
# {Anthropic::Models::Beta::BetaEnvironment} for more details.
|
|
72
|
+
#
|
|
63
73
|
# Unified Environment resource for both cloud and self-hosted environments.
|
|
64
74
|
#
|
|
65
75
|
# @param id [String] Environment identifier (e.g., 'env\_...')
|
|
66
76
|
#
|
|
67
77
|
# @param archived_at [String, nil] RFC 3339 timestamp when environment was archived, or null if not archived
|
|
68
78
|
#
|
|
69
|
-
# @param config [Anthropic::Models::Beta::BetaCloudConfig]
|
|
79
|
+
# @param config [Anthropic::Models::Beta::BetaCloudConfig, Anthropic::Models::Beta::BetaSelfHostedConfig] Environment configuration (either Anthropic Cloud or self-hosted)
|
|
70
80
|
#
|
|
71
81
|
# @param created_at [String] RFC 3339 timestamp when environment was created
|
|
72
82
|
#
|
|
@@ -78,7 +88,41 @@ module Anthropic
|
|
|
78
88
|
#
|
|
79
89
|
# @param updated_at [String] RFC 3339 timestamp when environment was last updated
|
|
80
90
|
#
|
|
91
|
+
# @param scope [Symbol, Anthropic::Models::Beta::BetaEnvironment::Scope] The visibility scope for this environment. 'organization' means visible to all a
|
|
92
|
+
#
|
|
81
93
|
# @param type [Symbol, :environment] The type of object (always 'environment')
|
|
94
|
+
|
|
95
|
+
# Environment configuration (either Anthropic Cloud or self-hosted)
|
|
96
|
+
#
|
|
97
|
+
# @see Anthropic::Models::Beta::BetaEnvironment#config
|
|
98
|
+
module Config
|
|
99
|
+
extend Anthropic::Internal::Type::Union
|
|
100
|
+
|
|
101
|
+
discriminator :type
|
|
102
|
+
|
|
103
|
+
# `cloud` environment configuration.
|
|
104
|
+
variant :cloud, -> { Anthropic::Beta::BetaCloudConfig }
|
|
105
|
+
|
|
106
|
+
# Configuration for self-hosted environments.
|
|
107
|
+
variant :self_hosted, -> { Anthropic::Beta::BetaSelfHostedConfig }
|
|
108
|
+
|
|
109
|
+
# @!method self.variants
|
|
110
|
+
# @return [Array(Anthropic::Models::Beta::BetaCloudConfig, Anthropic::Models::Beta::BetaSelfHostedConfig)]
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# The visibility scope for this environment. 'organization' means visible to all
|
|
114
|
+
# accounts. 'account' means visible only to the owning account.
|
|
115
|
+
#
|
|
116
|
+
# @see Anthropic::Models::Beta::BetaEnvironment#scope
|
|
117
|
+
module Scope
|
|
118
|
+
extend Anthropic::Internal::Type::Enum
|
|
119
|
+
|
|
120
|
+
ORGANIZATION = :organization
|
|
121
|
+
ACCOUNT = :account
|
|
122
|
+
|
|
123
|
+
# @!method self.values
|
|
124
|
+
# @return [Array<Symbol>]
|
|
125
|
+
end
|
|
82
126
|
end
|
|
83
127
|
end
|
|
84
128
|
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsAgentToolset20260401BashInput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute command
|
|
8
|
+
# Shell command to execute. Omit only when `restart` is true.
|
|
9
|
+
#
|
|
10
|
+
# @return [String, nil]
|
|
11
|
+
optional :command, String
|
|
12
|
+
|
|
13
|
+
# @!attribute restart
|
|
14
|
+
# When true, restart the persistent bash session instead of running a command.
|
|
15
|
+
# Subsequent calls without `restart` will run against the fresh session.
|
|
16
|
+
#
|
|
17
|
+
# @return [Boolean, nil]
|
|
18
|
+
optional :restart, Anthropic::Internal::Type::Boolean
|
|
19
|
+
|
|
20
|
+
# @!attribute timeout_ms
|
|
21
|
+
# Per-call timeout in milliseconds. Defaults to the runner-wide tool timeout when
|
|
22
|
+
# omitted or zero.
|
|
23
|
+
#
|
|
24
|
+
# @return [Integer, nil]
|
|
25
|
+
optional :timeout_ms, Integer
|
|
26
|
+
|
|
27
|
+
# @!method initialize(command: nil, restart: nil, timeout_ms: nil)
|
|
28
|
+
# Some parameter documentations has been truncated, see
|
|
29
|
+
# {Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401BashInput} for
|
|
30
|
+
# more details.
|
|
31
|
+
#
|
|
32
|
+
# Input payload for the `bash` tool of the `agent_toolset_20260401` toolset. All
|
|
33
|
+
# fields are optional; a normal invocation supplies `command`, while
|
|
34
|
+
# `restart=true` (with no `command`) reboots the runner-side bash session.
|
|
35
|
+
#
|
|
36
|
+
# @param command [String] Shell command to execute. Omit only when `restart` is true.
|
|
37
|
+
#
|
|
38
|
+
# @param restart [Boolean] When true, restart the persistent bash session instead of
|
|
39
|
+
#
|
|
40
|
+
# @param timeout_ms [Integer] Per-call timeout in milliseconds. Defaults to the
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
BetaManagedAgentsAgentToolset20260401BashInput = Beta::BetaManagedAgentsAgentToolset20260401BashInput
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsAgentToolset20260401EditInput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute file_path
|
|
8
|
+
# Path of the file to edit.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :file_path, String
|
|
12
|
+
|
|
13
|
+
# @!attribute new_string
|
|
14
|
+
# Replacement text.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :new_string, String
|
|
18
|
+
|
|
19
|
+
# @!attribute old_string
|
|
20
|
+
# Substring to find and replace.
|
|
21
|
+
#
|
|
22
|
+
# @return [String]
|
|
23
|
+
required :old_string, String
|
|
24
|
+
|
|
25
|
+
# @!attribute replace_all
|
|
26
|
+
# When true, replace every occurrence of `old_string` instead of requiring a
|
|
27
|
+
# unique match.
|
|
28
|
+
#
|
|
29
|
+
# @return [Boolean, nil]
|
|
30
|
+
optional :replace_all, Anthropic::Internal::Type::Boolean
|
|
31
|
+
|
|
32
|
+
# @!method initialize(file_path:, new_string:, old_string:, replace_all: nil)
|
|
33
|
+
# Some parameter documentations has been truncated, see
|
|
34
|
+
# {Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401EditInput} for
|
|
35
|
+
# more details.
|
|
36
|
+
#
|
|
37
|
+
# Input payload for the `edit` tool. Performs a string replacement in the named
|
|
38
|
+
# file; by default `old_string` must occur exactly once.
|
|
39
|
+
#
|
|
40
|
+
# @param file_path [String] Path of the file to edit.
|
|
41
|
+
#
|
|
42
|
+
# @param new_string [String] Replacement text.
|
|
43
|
+
#
|
|
44
|
+
# @param old_string [String] Substring to find and replace.
|
|
45
|
+
#
|
|
46
|
+
# @param replace_all [Boolean] When true, replace every occurrence of `old_string`
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
BetaManagedAgentsAgentToolset20260401EditInput = Beta::BetaManagedAgentsAgentToolset20260401EditInput
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsAgentToolset20260401GlobInput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute pattern
|
|
8
|
+
# Doublestar glob pattern (e.g. `**/*.go`). Absolute patterns are only permitted
|
|
9
|
+
# when the runner is configured to allow them.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :pattern, String
|
|
13
|
+
|
|
14
|
+
# @!attribute path
|
|
15
|
+
# Optional directory root to search under. Defaults to the runner's working
|
|
16
|
+
# directory.
|
|
17
|
+
#
|
|
18
|
+
# @return [String, nil]
|
|
19
|
+
optional :path, String
|
|
20
|
+
|
|
21
|
+
# @!method initialize(pattern:, path: nil)
|
|
22
|
+
# Some parameter documentations has been truncated, see
|
|
23
|
+
# {Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401GlobInput} for
|
|
24
|
+
# more details.
|
|
25
|
+
#
|
|
26
|
+
# Input payload for the `glob` tool. Returns paths matching a doublestar glob
|
|
27
|
+
# pattern, newest first.
|
|
28
|
+
#
|
|
29
|
+
# @param pattern [String] Doublestar glob pattern (e.g. `**/*.go`). Absolute patterns
|
|
30
|
+
#
|
|
31
|
+
# @param path [String] Optional directory root to search under. Defaults to the
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
BetaManagedAgentsAgentToolset20260401GlobInput = Beta::BetaManagedAgentsAgentToolset20260401GlobInput
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsAgentToolset20260401GrepInput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute pattern
|
|
8
|
+
# Regular expression to search for.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :pattern, String
|
|
12
|
+
|
|
13
|
+
# @!attribute path
|
|
14
|
+
# Optional directory root to search under. Defaults to the runner's working
|
|
15
|
+
# directory.
|
|
16
|
+
#
|
|
17
|
+
# @return [String, nil]
|
|
18
|
+
optional :path, String
|
|
19
|
+
|
|
20
|
+
# @!method initialize(pattern:, path: nil)
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401GrepInput} for
|
|
23
|
+
# more details.
|
|
24
|
+
#
|
|
25
|
+
# Input payload for the `grep` tool. Searches file contents for a regular
|
|
26
|
+
# expression, returning matching lines.
|
|
27
|
+
#
|
|
28
|
+
# @param pattern [String] Regular expression to search for.
|
|
29
|
+
#
|
|
30
|
+
# @param path [String] Optional directory root to search under. Defaults to the
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
BetaManagedAgentsAgentToolset20260401GrepInput = Beta::BetaManagedAgentsAgentToolset20260401GrepInput
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsAgentToolset20260401ReadInput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute file_path
|
|
8
|
+
# Path of the file to read.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :file_path, String
|
|
12
|
+
|
|
13
|
+
# @!attribute view_range
|
|
14
|
+
# Optional `[start_line, end_line]` 1-indexed inclusive range. When omitted the
|
|
15
|
+
# entire file is returned. `end_line` of 0 or negative means "to end of file".
|
|
16
|
+
#
|
|
17
|
+
# @return [Array<Integer>, nil]
|
|
18
|
+
optional :view_range, Anthropic::Internal::Type::ArrayOf[Integer]
|
|
19
|
+
|
|
20
|
+
# @!method initialize(file_path:, view_range: nil)
|
|
21
|
+
# Some parameter documentations has been truncated, see
|
|
22
|
+
# {Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401ReadInput} for
|
|
23
|
+
# more details.
|
|
24
|
+
#
|
|
25
|
+
# Input payload for the `read` tool. Reads file contents relative to the runner's
|
|
26
|
+
# working directory (or absolute when the runner permits).
|
|
27
|
+
#
|
|
28
|
+
# @param file_path [String] Path of the file to read.
|
|
29
|
+
#
|
|
30
|
+
# @param view_range [Array<Integer>] Optional `[start_line, end_line]` 1-indexed inclusive
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
BetaManagedAgentsAgentToolset20260401ReadInput = Beta::BetaManagedAgentsAgentToolset20260401ReadInput
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsAgentToolset20260401WriteInput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute content
|
|
8
|
+
# Full file contents to write.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :content, String
|
|
12
|
+
|
|
13
|
+
# @!attribute file_path
|
|
14
|
+
# Path of the file to write.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :file_path, String
|
|
18
|
+
|
|
19
|
+
# @!method initialize(content:, file_path:)
|
|
20
|
+
# Input payload for the `write` tool. Writes (overwriting) the entire file
|
|
21
|
+
# contents.
|
|
22
|
+
#
|
|
23
|
+
# @param content [String] Full file contents to write.
|
|
24
|
+
#
|
|
25
|
+
# @param file_path [String] Path of the file to write.
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
BetaManagedAgentsAgentToolset20260401WriteInput = Beta::BetaManagedAgentsAgentToolset20260401WriteInput
|
|
30
|
+
end
|
|
31
|
+
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsSessionAgentUpdate < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute mcp_servers
|
|
8
|
+
# Replacement MCP server list. Full replacement: the provided array becomes the
|
|
9
|
+
# new value. Send an empty array to clear; omit to preserve.
|
|
10
|
+
#
|
|
11
|
+
# @return [Array<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>, nil]
|
|
12
|
+
optional :mcp_servers,
|
|
13
|
+
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaManagedAgentsURLMCPServerParams] }
|
|
14
|
+
|
|
15
|
+
# @!attribute tools
|
|
16
|
+
# Replacement tool list. Full replacement: the provided array becomes the new
|
|
17
|
+
# value. Send an empty array to clear; omit to preserve.
|
|
18
|
+
#
|
|
19
|
+
# @return [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>, nil]
|
|
20
|
+
optional :tools,
|
|
21
|
+
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSessionAgentUpdate::Tool] }
|
|
22
|
+
|
|
23
|
+
# @!method initialize(mcp_servers: nil, tools: nil)
|
|
24
|
+
# Some parameter documentations has been truncated, see
|
|
25
|
+
# {Anthropic::Models::Beta::BetaManagedAgentsSessionAgentUpdate} for more details.
|
|
26
|
+
#
|
|
27
|
+
# Mid-session agent configuration update. Only `tools` and `mcp_servers` are
|
|
28
|
+
# updatable. Full replacement: the provided array becomes the new value. To
|
|
29
|
+
# preserve existing entries, GET the session, modify the array, and POST it back.
|
|
30
|
+
#
|
|
31
|
+
# @param mcp_servers [Array<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>] Replacement MCP server list. Full replacement: the provided array becomes the ne
|
|
32
|
+
#
|
|
33
|
+
# @param tools [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>] Replacement tool list. Full replacement: the provided array becomes the new valu
|
|
34
|
+
|
|
35
|
+
# Union type for tool configurations in the tools array.
|
|
36
|
+
module Tool
|
|
37
|
+
extend Anthropic::Internal::Type::Union
|
|
38
|
+
|
|
39
|
+
discriminator :type
|
|
40
|
+
|
|
41
|
+
# Configuration for built-in agent tools. Use this to enable or disable groups of tools available to the agent.
|
|
42
|
+
variant :agent_toolset_20260401, -> { Anthropic::Beta::BetaManagedAgentsAgentToolset20260401Params }
|
|
43
|
+
|
|
44
|
+
# Configuration for tools from an MCP server defined in `mcp_servers`.
|
|
45
|
+
variant :mcp_toolset, -> { Anthropic::Beta::BetaManagedAgentsMCPToolsetParams }
|
|
46
|
+
|
|
47
|
+
# A custom tool that is executed by the API client rather than the agent. When the agent calls this tool, an `agent.custom_tool_use` event is emitted and the session goes idle, waiting for the client to provide the result via a `user.custom_tool_result` event.
|
|
48
|
+
variant :custom, -> { Anthropic::Beta::BetaManagedAgentsCustomToolParams }
|
|
49
|
+
|
|
50
|
+
# @!method self.variants
|
|
51
|
+
# @return [Array(Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams)]
|
|
52
|
+
end
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
BetaManagedAgentsSessionAgentUpdate = Beta::BetaManagedAgentsSessionAgentUpdate
|
|
57
|
+
end
|
|
58
|
+
end
|
|
@@ -7,9 +7,9 @@ module Anthropic
|
|
|
7
7
|
# @!attribute agents
|
|
8
8
|
# Full `agent` definitions the coordinator may spawn as session threads.
|
|
9
9
|
#
|
|
10
|
-
# @return [Array<Anthropic::Models::Beta::
|
|
10
|
+
# @return [Array<Anthropic::Models::Beta::BetaManagedAgentsSessionThreadAgent>]
|
|
11
11
|
required :agents,
|
|
12
|
-
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::
|
|
12
|
+
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaManagedAgentsSessionThreadAgent] }
|
|
13
13
|
|
|
14
14
|
# @!attribute type
|
|
15
15
|
#
|
|
@@ -20,7 +20,7 @@ module Anthropic
|
|
|
20
20
|
# Resolved coordinator topology with full agent definitions for each roster
|
|
21
21
|
# member.
|
|
22
22
|
#
|
|
23
|
-
# @param agents [Array<Anthropic::Models::Beta::
|
|
23
|
+
# @param agents [Array<Anthropic::Models::Beta::BetaManagedAgentsSessionThreadAgent>] Full `agent` definitions the coordinator may spawn as session threads.
|
|
24
24
|
#
|
|
25
25
|
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsSessionMultiagentCoordinator::Type]
|
|
26
26
|
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsSessionThreadAgent < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute description
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
required :description, String, nil?: true
|
|
16
|
+
|
|
17
|
+
# @!attribute mcp_servers
|
|
18
|
+
#
|
|
19
|
+
# @return [Array<Anthropic::Models::Beta::BetaManagedAgentsMCPServerURLDefinition>]
|
|
20
|
+
required :mcp_servers,
|
|
21
|
+
-> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaManagedAgentsMCPServerURLDefinition] }
|
|
22
|
+
|
|
23
|
+
# @!attribute model
|
|
24
|
+
# Model identifier and configuration.
|
|
25
|
+
#
|
|
26
|
+
# @return [Anthropic::Models::Beta::BetaManagedAgentsModelConfig]
|
|
27
|
+
required :model, -> { Anthropic::Beta::BetaManagedAgentsModelConfig }
|
|
28
|
+
|
|
29
|
+
# @!attribute name
|
|
30
|
+
#
|
|
31
|
+
# @return [String]
|
|
32
|
+
required :name, String
|
|
33
|
+
|
|
34
|
+
# @!attribute skills
|
|
35
|
+
#
|
|
36
|
+
# @return [Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkill, Anthropic::Models::Beta::BetaManagedAgentsCustomSkill>]
|
|
37
|
+
required :skills,
|
|
38
|
+
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSessionThreadAgent::Skill] }
|
|
39
|
+
|
|
40
|
+
# @!attribute system_
|
|
41
|
+
#
|
|
42
|
+
# @return [String, nil]
|
|
43
|
+
required :system_, String, api_name: :system, nil?: true
|
|
44
|
+
|
|
45
|
+
# @!attribute tools
|
|
46
|
+
#
|
|
47
|
+
# @return [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401, Anthropic::Models::Beta::BetaManagedAgentsMCPToolset, Anthropic::Models::Beta::BetaManagedAgentsCustomTool>]
|
|
48
|
+
required :tools,
|
|
49
|
+
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSessionThreadAgent::Tool] }
|
|
50
|
+
|
|
51
|
+
# @!attribute type
|
|
52
|
+
#
|
|
53
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaManagedAgentsSessionThreadAgent::Type]
|
|
54
|
+
required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsSessionThreadAgent::Type }
|
|
55
|
+
|
|
56
|
+
# @!attribute version
|
|
57
|
+
#
|
|
58
|
+
# @return [Integer]
|
|
59
|
+
required :version, Integer
|
|
60
|
+
|
|
61
|
+
# @!method initialize(id:, description:, mcp_servers:, model:, name:, skills:, system_:, tools:, type:, version:)
|
|
62
|
+
# Resolved `agent` definition for a single `session_thread`. Snapshot of the agent
|
|
63
|
+
# at thread creation time. The multiagent roster is not repeated here; read it
|
|
64
|
+
# from `Session.agent`.
|
|
65
|
+
#
|
|
66
|
+
# @param id [String]
|
|
67
|
+
#
|
|
68
|
+
# @param description [String, nil]
|
|
69
|
+
#
|
|
70
|
+
# @param mcp_servers [Array<Anthropic::Models::Beta::BetaManagedAgentsMCPServerURLDefinition>]
|
|
71
|
+
#
|
|
72
|
+
# @param model [Anthropic::Models::Beta::BetaManagedAgentsModelConfig] Model identifier and configuration.
|
|
73
|
+
#
|
|
74
|
+
# @param name [String]
|
|
75
|
+
#
|
|
76
|
+
# @param skills [Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkill, Anthropic::Models::Beta::BetaManagedAgentsCustomSkill>]
|
|
77
|
+
#
|
|
78
|
+
# @param system_ [String, nil]
|
|
79
|
+
#
|
|
80
|
+
# @param tools [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401, Anthropic::Models::Beta::BetaManagedAgentsMCPToolset, Anthropic::Models::Beta::BetaManagedAgentsCustomTool>]
|
|
81
|
+
#
|
|
82
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsSessionThreadAgent::Type]
|
|
83
|
+
#
|
|
84
|
+
# @param version [Integer]
|
|
85
|
+
|
|
86
|
+
# Resolved skill as returned in API responses.
|
|
87
|
+
module Skill
|
|
88
|
+
extend Anthropic::Internal::Type::Union
|
|
89
|
+
|
|
90
|
+
discriminator :type
|
|
91
|
+
|
|
92
|
+
# A resolved Anthropic-managed skill.
|
|
93
|
+
variant :anthropic, -> { Anthropic::Beta::BetaManagedAgentsAnthropicSkill }
|
|
94
|
+
|
|
95
|
+
# A resolved user-created custom skill.
|
|
96
|
+
variant :custom, -> { Anthropic::Beta::BetaManagedAgentsCustomSkill }
|
|
97
|
+
|
|
98
|
+
# @!method self.variants
|
|
99
|
+
# @return [Array(Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkill, Anthropic::Models::Beta::BetaManagedAgentsCustomSkill)]
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Union type for tool configurations returned in API responses.
|
|
103
|
+
module Tool
|
|
104
|
+
extend Anthropic::Internal::Type::Union
|
|
105
|
+
|
|
106
|
+
discriminator :type
|
|
107
|
+
|
|
108
|
+
variant :agent_toolset_20260401, -> { Anthropic::Beta::BetaManagedAgentsAgentToolset20260401 }
|
|
109
|
+
|
|
110
|
+
variant :mcp_toolset, -> { Anthropic::Beta::BetaManagedAgentsMCPToolset }
|
|
111
|
+
|
|
112
|
+
# A custom tool as returned in API responses.
|
|
113
|
+
variant :custom, -> { Anthropic::Beta::BetaManagedAgentsCustomTool }
|
|
114
|
+
|
|
115
|
+
# @!method self.variants
|
|
116
|
+
# @return [Array(Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401, Anthropic::Models::Beta::BetaManagedAgentsMCPToolset, Anthropic::Models::Beta::BetaManagedAgentsCustomTool)]
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# @see Anthropic::Models::Beta::BetaManagedAgentsSessionThreadAgent#type
|
|
120
|
+
module Type
|
|
121
|
+
extend Anthropic::Internal::Type::Enum
|
|
122
|
+
|
|
123
|
+
AGENT = :agent
|
|
124
|
+
|
|
125
|
+
# @!method self.values
|
|
126
|
+
# @return [Array<Symbol>]
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
BetaManagedAgentsSessionThreadAgent = Beta::BetaManagedAgentsSessionThreadAgent
|
|
132
|
+
end
|
|
133
|
+
end
|