anthropic 1.44.0 → 1.46.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 +35 -0
- data/README.md +1 -1
- data/SECURITY.md +7 -19
- data/lib/anthropic/helpers/streaming/message_stream.rb +18 -0
- data/lib/anthropic/models/beta/agent_create_params.rb +8 -8
- data/lib/anthropic/models/beta/agent_update_params.rb +7 -10
- data/lib/anthropic/models/beta/beta_advisor_tool_20260301.rb +15 -1
- data/lib/anthropic/models/beta/beta_advisor_tool_result_error.rb +1 -0
- data/lib/anthropic/models/beta/beta_advisor_tool_result_error_param.rb +1 -0
- data/lib/anthropic/models/beta/beta_managed_agents_custom_tool_input_schema.rb +10 -27
- data/lib/anthropic/models/beta/beta_tool_search_tool_result_error_param.rb +7 -1
- data/lib/anthropic/models/beta/beta_webhook_session_archived_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_created_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_deleted_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_idled_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_outcome_evaluation_ended_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_pending_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_requires_action_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_running_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_status_idled_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_status_rescheduled_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_status_run_started_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_status_terminated_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_thread_created_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_thread_idled_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_session_thread_terminated_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_vault_archived_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_vault_created_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_vault_credential_archived_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_vault_credential_created_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_vault_credential_deleted_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_vault_credential_refresh_failed_event_data.rb +2 -2
- data/lib/anthropic/models/beta/beta_webhook_vault_deleted_event_data.rb +2 -2
- data/lib/anthropic/models/beta/session_list_params.rb +2 -2
- data/lib/anthropic/models/model.rb +6 -0
- data/lib/anthropic/models/tool_search_tool_result_error_param.rb +7 -1
- data/lib/anthropic/resources/beta/agents.rb +7 -7
- data/lib/anthropic/resources/beta/sessions.rb +1 -1
- data/lib/anthropic/version.rb +1 -1
- data/rbi/anthropic/models/beta/agent_create_params.rbi +8 -8
- data/rbi/anthropic/models/beta/agent_update_params.rbi +6 -12
- data/rbi/anthropic/models/beta/beta_advisor_tool_20260301.rbi +20 -0
- data/rbi/anthropic/models/beta/beta_advisor_tool_result_error.rbi +5 -0
- data/rbi/anthropic/models/beta/beta_advisor_tool_result_error_param.rbi +5 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool_input_schema.rbi +9 -68
- data/rbi/anthropic/models/beta/beta_tool_search_tool_result_error_param.rbi +11 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_archived_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_created_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_deleted_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_idled_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_outcome_evaluation_ended_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_pending_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_requires_action_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_running_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_status_idled_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_status_rescheduled_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_status_run_started_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_status_terminated_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_thread_created_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_thread_idled_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_session_thread_terminated_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_vault_archived_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_vault_created_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_vault_credential_archived_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_vault_credential_created_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_vault_credential_deleted_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_vault_credential_refresh_failed_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_webhook_vault_deleted_event_data.rbi +2 -2
- data/rbi/anthropic/models/beta/session_list_params.rbi +2 -2
- data/rbi/anthropic/models/tool_search_tool_result_error_param.rbi +11 -2
- data/rbi/anthropic/resources/beta/agents.rbi +8 -10
- data/rbi/anthropic/resources/beta/sessions.rbi +1 -1
- data/sig/anthropic/models/beta/beta_advisor_tool_20260301.rbs +5 -0
- data/sig/anthropic/models/beta/beta_advisor_tool_result_error.rbs +2 -0
- data/sig/anthropic/models/beta/beta_advisor_tool_result_error_param.rbs +2 -0
- data/sig/anthropic/models/beta/beta_managed_agents_custom_tool_input_schema.rbs +9 -25
- data/sig/anthropic/models/beta/beta_tool_search_tool_result_error_param.rbs +7 -2
- data/sig/anthropic/models/tool_search_tool_result_error_param.rbs +7 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a58b5713db9e1ef7b8abebd0a189176ddc46d1b28d04b8f072a32331a9d6be95
|
|
4
|
+
data.tar.gz: dc427a2dd0b75d47dbbb8e2b71539e4f2de1ffd5844ac96a77ca0a38d8588de0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40c8be3263202fb1abec20744d6448cd395d28a778c0375f104059038f26adc03f001e40e286afb5cb5c0d11045ed5e5fce106c96f9fbad46207c0331e1cec36
|
|
7
|
+
data.tar.gz: 928a92d2e651601606d99d1bca07e5b46e601068b715478a53458d6a788a12791672df06bd80153efbc78cd9964fd2b18dc81c578b3c038a1bb59337279abd31
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.46.0 (2026-06-06)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.45.0...v1.46.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.45.0...v1.46.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** small updates to Managed Agents types ([7edca7a](https://github.com/anthropics/anthropic-sdk-ruby/commit/7edca7a42f521b53085fef8360dcda9bad974748))
|
|
10
|
+
|
|
11
|
+
## 1.45.0 (2026-06-05)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v1.44.0...v1.45.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.44.0...v1.45.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** mark Claude Opus 4.1 as deprecated ([ccc292f](https://github.com/anthropics/anthropic-sdk-ruby/commit/ccc292f10ffb2c825f5b34c8372e7d6803ebc83d))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **streaming:** carry encrypted_content through beta compaction accumulator ([#938](https://github.com/anthropics/anthropic-sdk-ruby/issues/938)) ([6bd298f](https://github.com/anthropics/anthropic-sdk-ruby/commit/6bd298fa4421192fdc74ee99462d94ec01a514d3))
|
|
23
|
+
* **streaming:** carry stop_details and full usage through message_delta ([#940](https://github.com/anthropics/anthropic-sdk-ruby/issues/940)) ([ef4d2ea](https://github.com/anthropics/anthropic-sdk-ruby/commit/ef4d2ea31c0e566d7ad387419ba7d6144bf06861))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Chores
|
|
27
|
+
|
|
28
|
+
* **internal:** codegen related update ([296d6a4](https://github.com/anthropics/anthropic-sdk-ruby/commit/296d6a47ec96c36cf7a924bd74aa752d2d2ff125))
|
|
29
|
+
* **internal:** fix artifact url ([a97bd1e](https://github.com/anthropics/anthropic-sdk-ruby/commit/a97bd1e6fa5094057d2967d1b0573eec6602e026))
|
|
30
|
+
* **internal:** fix branch names ([16564d3](https://github.com/anthropics/anthropic-sdk-ruby/commit/16564d3806d4cb70000fe374c6ccf399e8903ba8))
|
|
31
|
+
* **internal:** update staging repo ([3f6005b](https://github.com/anthropics/anthropic-sdk-ruby/commit/3f6005b00242d66f711c31a4e51973576745aaee))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Documentation
|
|
35
|
+
|
|
36
|
+
* point security reports to Anthropic's HackerOne program ([#6](https://github.com/anthropics/anthropic-sdk-ruby/issues/6)) ([2d0f2af](https://github.com/anthropics/anthropic-sdk-ruby/commit/2d0f2af04956b58976aaf783b6ce24a4271c15ab))
|
|
37
|
+
|
|
3
38
|
## 1.44.0 (2026-05-28)
|
|
4
39
|
|
|
5
40
|
Full Changelog: [v1.43.0...v1.44.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.43.0...v1.44.0)
|
data/README.md
CHANGED
data/SECURITY.md
CHANGED
|
@@ -1,27 +1,15 @@
|
|
|
1
1
|
# Security Policy
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
This SDK is generated by [Stainless Software Inc](http://stainless.com). Stainless takes security seriously, and encourages you to report any security vulnerability promptly so that appropriate action can be taken.
|
|
6
|
-
|
|
7
|
-
To report a security issue, please contact the Stainless team at security@stainless.com.
|
|
8
|
-
|
|
9
|
-
## Responsible Disclosure
|
|
10
|
-
|
|
11
|
-
We appreciate the efforts of security researchers and individuals who help us maintain the security of
|
|
12
|
-
SDKs we generate. If you believe you have found a security vulnerability, please adhere to responsible
|
|
13
|
-
disclosure practices by allowing us a reasonable amount of time to investigate and address the issue
|
|
14
|
-
before making any information public.
|
|
3
|
+
Thank you for helping us keep the SDKs and systems they interact with secure.
|
|
15
4
|
|
|
16
|
-
## Reporting
|
|
5
|
+
## Reporting Security Issues
|
|
17
6
|
|
|
18
|
-
|
|
19
|
-
or products provided by Anthropic, please follow the respective company's security reporting guidelines.
|
|
7
|
+
This SDK is maintained by [Anthropic](https://www.anthropic.com/).
|
|
20
8
|
|
|
21
|
-
|
|
9
|
+
The security of our systems and user data is Anthropic’s top priority. We appreciate the work of security researchers acting in good faith in identifying and reporting potential vulnerabilities.
|
|
22
10
|
|
|
23
|
-
|
|
11
|
+
Our security program is managed on HackerOne and we ask that any validated vulnerability in this functionality be reported through their [submission form](https://hackerone.com/4f1f16ba-10d3-4d09-9ecc-c721aad90f24/embedded_submissions/new).
|
|
24
12
|
|
|
25
|
-
|
|
13
|
+
## Anthropic Bug Bounty
|
|
26
14
|
|
|
27
|
-
|
|
15
|
+
Our Bug Bounty Program Guidelines are defined on our [HackerOne program page](https://hackerone.com/anthropic).
|
|
@@ -134,13 +134,31 @@ module Anthropic
|
|
|
134
134
|
content.signature = delta.signature
|
|
135
135
|
in Anthropic::Models::BetaCompactionContentBlockDelta if content.type == :compaction
|
|
136
136
|
content.content = delta.content
|
|
137
|
+
content.encrypted_content = delta.encrypted_content
|
|
137
138
|
else
|
|
138
139
|
end
|
|
139
140
|
in Anthropic::Models::RawMessageDeltaEvent | Anthropic::Models::BetaRawMessageDeltaEvent
|
|
140
141
|
current_snapshot.stop_reason = event.delta.stop_reason
|
|
141
142
|
current_snapshot.stop_sequence = event.delta.stop_sequence
|
|
143
|
+
current_snapshot.stop_details = event.delta.stop_details unless event.delta.stop_details.nil?
|
|
142
144
|
current_snapshot.usage.output_tokens = event.usage.output_tokens
|
|
143
145
|
|
|
146
|
+
# The message_delta usage is authoritative for the final counts; carry every
|
|
147
|
+
# field the event reports (only when present, so we never clobber the
|
|
148
|
+
# message_start values with nils).
|
|
149
|
+
unless event.usage.input_tokens.nil?
|
|
150
|
+
current_snapshot.usage.input_tokens = event.usage.input_tokens
|
|
151
|
+
end
|
|
152
|
+
unless event.usage.cache_creation_input_tokens.nil?
|
|
153
|
+
current_snapshot.usage.cache_creation_input_tokens = event.usage.cache_creation_input_tokens
|
|
154
|
+
end
|
|
155
|
+
unless event.usage.cache_read_input_tokens.nil?
|
|
156
|
+
current_snapshot.usage.cache_read_input_tokens = event.usage.cache_read_input_tokens
|
|
157
|
+
end
|
|
158
|
+
unless event.usage.server_tool_use.nil?
|
|
159
|
+
current_snapshot.usage.server_tool_use = event.usage.server_tool_use
|
|
160
|
+
end
|
|
161
|
+
|
|
144
162
|
if event.is_a?(Anthropic::Models::BetaRawMessageDeltaEvent) && !event.usage.iterations.nil?
|
|
145
163
|
current_snapshot.usage.iterations = event.usage.iterations
|
|
146
164
|
end
|
|
@@ -18,13 +18,13 @@ module Anthropic
|
|
|
18
18
|
required :model, union: -> { Anthropic::Beta::AgentCreateParams::Model }
|
|
19
19
|
|
|
20
20
|
# @!attribute name
|
|
21
|
-
# Human-readable name for the agent.
|
|
21
|
+
# Human-readable name for the agent.
|
|
22
22
|
#
|
|
23
23
|
# @return [String]
|
|
24
24
|
required :name, String
|
|
25
25
|
|
|
26
26
|
# @!attribute description
|
|
27
|
-
# Description of what the agent does.
|
|
27
|
+
# Description of what the agent does.
|
|
28
28
|
#
|
|
29
29
|
# @return [String, nil]
|
|
30
30
|
optional :description, String, nil?: true
|
|
@@ -52,14 +52,14 @@ module Anthropic
|
|
|
52
52
|
optional :multiagent, -> { Anthropic::Beta::BetaManagedAgentsMultiagentParams }, nil?: true
|
|
53
53
|
|
|
54
54
|
# @!attribute skills
|
|
55
|
-
# Skills available to the agent.
|
|
55
|
+
# Skills available to the agent.
|
|
56
56
|
#
|
|
57
57
|
# @return [Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>, nil]
|
|
58
58
|
optional :skills,
|
|
59
59
|
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaManagedAgentsSkillParams] }
|
|
60
60
|
|
|
61
61
|
# @!attribute system_
|
|
62
|
-
# System prompt for the agent.
|
|
62
|
+
# System prompt for the agent.
|
|
63
63
|
#
|
|
64
64
|
# @return [String, nil]
|
|
65
65
|
optional :system_, String, api_name: :system, nil?: true
|
|
@@ -84,9 +84,9 @@ module Anthropic
|
|
|
84
84
|
#
|
|
85
85
|
# @param model [Symbol, String, Anthropic::Models::Beta::BetaManagedAgentsModel, Anthropic::Models::Beta::BetaManagedAgentsModelConfigParams] Model identifier. Accepts the [model string](https://platform.claude.com/docs/en
|
|
86
86
|
#
|
|
87
|
-
# @param name [String] Human-readable name for the agent.
|
|
87
|
+
# @param name [String] Human-readable name for the agent.
|
|
88
88
|
#
|
|
89
|
-
# @param description [String, nil] Description of what the agent does.
|
|
89
|
+
# @param description [String, nil] Description of what the agent does.
|
|
90
90
|
#
|
|
91
91
|
# @param mcp_servers [Array<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>] MCP servers this agent connects to. Maximum 20. Names must be unique within the
|
|
92
92
|
#
|
|
@@ -94,9 +94,9 @@ module Anthropic
|
|
|
94
94
|
#
|
|
95
95
|
# @param multiagent [Anthropic::Models::Beta::BetaManagedAgentsMultiagentParams, nil] A coordinator topology: the session's primary thread orchestrates work by spawni
|
|
96
96
|
#
|
|
97
|
-
# @param skills [Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>] Skills available to the agent.
|
|
97
|
+
# @param skills [Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>] Skills available to the agent.
|
|
98
98
|
#
|
|
99
|
-
# @param system_ [String, nil] System prompt for the agent.
|
|
99
|
+
# @param system_ [String, nil] System prompt for the agent.
|
|
100
100
|
#
|
|
101
101
|
# @param tools [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>] Tool configurations available to the agent. Maximum of 128 tools across all tool
|
|
102
102
|
#
|
|
@@ -22,8 +22,7 @@ module Anthropic
|
|
|
22
22
|
required :version, Integer
|
|
23
23
|
|
|
24
24
|
# @!attribute description
|
|
25
|
-
# Description.
|
|
26
|
-
# to clear.
|
|
25
|
+
# Description. Omit to preserve; send empty string or null to clear.
|
|
27
26
|
#
|
|
28
27
|
# @return [String, nil]
|
|
29
28
|
optional :description, String, nil?: true
|
|
@@ -64,14 +63,13 @@ module Anthropic
|
|
|
64
63
|
optional :multiagent, -> { Anthropic::Beta::BetaManagedAgentsMultiagentParams }, nil?: true
|
|
65
64
|
|
|
66
65
|
# @!attribute name
|
|
67
|
-
# Human-readable name.
|
|
66
|
+
# Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.
|
|
68
67
|
#
|
|
69
68
|
# @return [String, nil]
|
|
70
69
|
optional :name, String
|
|
71
70
|
|
|
72
71
|
# @!attribute skills
|
|
73
72
|
# Skills. Full replacement. Omit to preserve; send empty array or null to clear.
|
|
74
|
-
# Maximum 20.
|
|
75
73
|
#
|
|
76
74
|
# @return [Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>, nil]
|
|
77
75
|
optional :skills,
|
|
@@ -81,8 +79,7 @@ module Anthropic
|
|
|
81
79
|
nil?: true
|
|
82
80
|
|
|
83
81
|
# @!attribute system_
|
|
84
|
-
# System prompt.
|
|
85
|
-
# null to clear.
|
|
82
|
+
# System prompt. Omit to preserve; send empty string or null to clear.
|
|
86
83
|
#
|
|
87
84
|
# @return [String, nil]
|
|
88
85
|
optional :system_, String, api_name: :system, nil?: true
|
|
@@ -111,7 +108,7 @@ module Anthropic
|
|
|
111
108
|
#
|
|
112
109
|
# @param version [Integer] The agent's current version, used to prevent concurrent overwrites. Obtain this
|
|
113
110
|
#
|
|
114
|
-
# @param description [String, nil] Description.
|
|
111
|
+
# @param description [String, nil] Description. Omit to preserve; send empty string or null to clear.
|
|
115
112
|
#
|
|
116
113
|
# @param mcp_servers [Array<Anthropic::Models::Beta::BetaManagedAgentsURLMCPServerParams>, nil] MCP servers. Full replacement. Omit to preserve; send empty array or null to cle
|
|
117
114
|
#
|
|
@@ -121,11 +118,11 @@ module Anthropic
|
|
|
121
118
|
#
|
|
122
119
|
# @param multiagent [Anthropic::Models::Beta::BetaManagedAgentsMultiagentParams, nil] A coordinator topology: the session's primary thread orchestrates work by spawni
|
|
123
120
|
#
|
|
124
|
-
# @param name [String] Human-readable name.
|
|
121
|
+
# @param name [String] Human-readable name. Must be non-empty. Omit to preserve. Cannot be cleared.
|
|
125
122
|
#
|
|
126
|
-
# @param skills [Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>, nil] Skills. Full replacement. Omit to preserve; send empty array or null to clear.
|
|
123
|
+
# @param skills [Array<Anthropic::Models::Beta::BetaManagedAgentsAnthropicSkillParams, Anthropic::Models::Beta::BetaManagedAgentsCustomSkillParams>, nil] Skills. Full replacement. Omit to preserve; send empty array or null to clear.
|
|
127
124
|
#
|
|
128
|
-
# @param system_ [String, nil] System prompt.
|
|
125
|
+
# @param system_ [String, nil] System prompt. Omit to preserve; send empty string or null to clear.
|
|
129
126
|
#
|
|
130
127
|
# @param tools [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>, nil] Tool configurations available to the agent. Full replacement. Omit to preserve;
|
|
131
128
|
#
|
|
@@ -53,6 +53,18 @@ module Anthropic
|
|
|
53
53
|
# @return [Boolean, nil]
|
|
54
54
|
optional :defer_loading, Anthropic::Internal::Type::Boolean
|
|
55
55
|
|
|
56
|
+
# @!attribute max_tokens
|
|
57
|
+
# Bounds the advisor's total output (thinking + text) per call. When the advisor
|
|
58
|
+
# hits this cap, the returned advisor_result or advisor_redacted_result block
|
|
59
|
+
# carries stop_reason='max_tokens', and a truncation note is appended to the
|
|
60
|
+
# advice text the worker model sees (inside the encrypted blob in redacted mode).
|
|
61
|
+
# When set, the server also emits a remaining-tokens budget block in the advisor's
|
|
62
|
+
# prompt so the advisor self-shapes toward the cap. When omitted, the advisor
|
|
63
|
+
# model's default output cap applies and no budget block is emitted.
|
|
64
|
+
#
|
|
65
|
+
# @return [Integer, nil]
|
|
66
|
+
optional :max_tokens, Integer, nil?: true
|
|
67
|
+
|
|
56
68
|
# @!attribute max_uses
|
|
57
69
|
# Maximum number of times the tool can be used in the API request.
|
|
58
70
|
#
|
|
@@ -65,7 +77,7 @@ module Anthropic
|
|
|
65
77
|
# @return [Boolean, nil]
|
|
66
78
|
optional :strict, Anthropic::Internal::Type::Boolean
|
|
67
79
|
|
|
68
|
-
# @!method initialize(model:, allowed_callers: nil, cache_control: nil, caching: nil, defer_loading: nil, max_uses: nil, strict: nil, name: :advisor, type: :advisor_20260301)
|
|
80
|
+
# @!method initialize(model:, allowed_callers: nil, cache_control: nil, caching: nil, defer_loading: nil, max_tokens: nil, max_uses: nil, strict: nil, name: :advisor, type: :advisor_20260301)
|
|
69
81
|
# Some parameter documentations has been truncated, see
|
|
70
82
|
# {Anthropic::Models::Beta::BetaAdvisorTool20260301} for more details.
|
|
71
83
|
#
|
|
@@ -79,6 +91,8 @@ module Anthropic
|
|
|
79
91
|
#
|
|
80
92
|
# @param defer_loading [Boolean] If true, tool will not be included in initial system prompt. Only loaded when re
|
|
81
93
|
#
|
|
94
|
+
# @param max_tokens [Integer, nil] Bounds the advisor's total output (thinking + text) per call. When the advisor h
|
|
95
|
+
#
|
|
82
96
|
# @param max_uses [Integer, nil] Maximum number of times the tool can be used in the API request.
|
|
83
97
|
#
|
|
84
98
|
# @param strict [Boolean] When true, guarantees schema validation on tool names and inputs
|
|
@@ -4,8 +4,12 @@ module Anthropic
|
|
|
4
4
|
module Models
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaManagedAgentsCustomToolInputSchema < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute type
|
|
8
|
+
#
|
|
9
|
+
# @return [Symbol, :object]
|
|
10
|
+
required :type, const: :object
|
|
11
|
+
|
|
7
12
|
# @!attribute properties
|
|
8
|
-
# JSON Schema properties defining the tool's input parameters.
|
|
9
13
|
#
|
|
10
14
|
# @return [Hash{Symbol=>Object}, nil]
|
|
11
15
|
optional :properties,
|
|
@@ -13,37 +17,16 @@ module Anthropic
|
|
|
13
17
|
nil?: true
|
|
14
18
|
|
|
15
19
|
# @!attribute required
|
|
16
|
-
# List of required property names.
|
|
17
20
|
#
|
|
18
21
|
# @return [Array<String>, nil]
|
|
19
|
-
optional :required, Anthropic::Internal::Type::ArrayOf[String]
|
|
20
|
-
|
|
21
|
-
# @!attribute type
|
|
22
|
-
# Must be 'object' for tool input schemas.
|
|
23
|
-
#
|
|
24
|
-
# @return [Symbol, Anthropic::Models::Beta::BetaManagedAgentsCustomToolInputSchema::Type, nil]
|
|
25
|
-
optional :type, enum: -> { Anthropic::Beta::BetaManagedAgentsCustomToolInputSchema::Type }
|
|
22
|
+
optional :required, Anthropic::Internal::Type::ArrayOf[String], nil?: true
|
|
26
23
|
|
|
27
|
-
# @!method initialize(properties: nil, required: nil, type:
|
|
24
|
+
# @!method initialize(properties: nil, required: nil, type: :object)
|
|
28
25
|
# JSON Schema for custom tool input parameters.
|
|
29
26
|
#
|
|
30
|
-
# @param properties [Hash{Symbol=>Object}, nil]
|
|
31
|
-
#
|
|
32
|
-
# @param
|
|
33
|
-
#
|
|
34
|
-
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsCustomToolInputSchema::Type] Must be 'object' for tool input schemas.
|
|
35
|
-
|
|
36
|
-
# Must be 'object' for tool input schemas.
|
|
37
|
-
#
|
|
38
|
-
# @see Anthropic::Models::Beta::BetaManagedAgentsCustomToolInputSchema#type
|
|
39
|
-
module Type
|
|
40
|
-
extend Anthropic::Internal::Type::Enum
|
|
41
|
-
|
|
42
|
-
OBJECT = :object
|
|
43
|
-
|
|
44
|
-
# @!method self.values
|
|
45
|
-
# @return [Array<Symbol>]
|
|
46
|
-
end
|
|
27
|
+
# @param properties [Hash{Symbol=>Object}, nil]
|
|
28
|
+
# @param required [Array<String>, nil]
|
|
29
|
+
# @param type [Symbol, :object]
|
|
47
30
|
end
|
|
48
31
|
end
|
|
49
32
|
|
|
@@ -14,8 +14,14 @@ module Anthropic
|
|
|
14
14
|
# @return [Symbol, :tool_search_tool_result_error]
|
|
15
15
|
required :type, const: :tool_search_tool_result_error
|
|
16
16
|
|
|
17
|
-
# @!
|
|
17
|
+
# @!attribute error_message
|
|
18
|
+
#
|
|
19
|
+
# @return [String, nil]
|
|
20
|
+
optional :error_message, String, nil?: true
|
|
21
|
+
|
|
22
|
+
# @!method initialize(error_code:, error_message: nil, type: :tool_search_tool_result_error)
|
|
18
23
|
# @param error_code [Symbol, Anthropic::Models::Beta::BetaToolSearchToolResultErrorParam::ErrorCode]
|
|
24
|
+
# @param error_message [String, nil]
|
|
19
25
|
# @param type [Symbol, :tool_search_tool_result_error]
|
|
20
26
|
|
|
21
27
|
# @see Anthropic::Models::Beta::BetaToolSearchToolResultErrorParam#error_code
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionArchivedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.archived")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionCreatedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.created")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionDeletedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.deleted")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionIdledEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.idled")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionOutcomeEvaluationEndedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.outcome_evaluation_ended")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionPendingEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.pending")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionRequiresActionEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.requires_action")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionRunningEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.running")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionStatusIdledEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.status_idled")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionStatusRescheduledEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.status_rescheduled")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionStatusRunStartedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.status_run_started")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionStatusTerminatedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.status_terminated")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionThreadCreatedEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.thread_created")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|
|
@@ -5,7 +5,7 @@ module Anthropic
|
|
|
5
5
|
module Beta
|
|
6
6
|
class BetaWebhookSessionThreadIdledEventData < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute id
|
|
8
|
-
# ID of the
|
|
8
|
+
# ID of the session that triggered the event.
|
|
9
9
|
#
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :id, String
|
|
@@ -26,7 +26,7 @@ module Anthropic
|
|
|
26
26
|
required :workspace_id, String
|
|
27
27
|
|
|
28
28
|
# @!method initialize(id:, organization_id:, workspace_id:, type: :"session.thread_idled")
|
|
29
|
-
# @param id [String] ID of the
|
|
29
|
+
# @param id [String] ID of the session that triggered the event.
|
|
30
30
|
#
|
|
31
31
|
# @param organization_id [String]
|
|
32
32
|
#
|