anthropic 1.79.0 → 1.80.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 +23 -1
- data/README.md +1 -1
- data/lib/anthropic/helpers/refusal_fallback.rb +52 -21
- data/lib/anthropic/models/beta/agent_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/agent_create_params.rb +3 -2
- data/lib/anthropic/models/beta/agent_list_params.rb +3 -2
- data/lib/anthropic/models/beta/agent_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/agent_update_params.rb +3 -2
- data/lib/anthropic/models/beta/agents/version_list_params.rb +3 -2
- data/lib/anthropic/models/beta/beta_thinking_types.rb +17 -2
- data/lib/anthropic/models/beta/deployment_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_create_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_list_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_pause_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_run_list_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_run_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_run_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_unpause_params.rb +3 -2
- data/lib/anthropic/models/beta/deployment_update_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_cancel_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_create_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_list_params.rb +3 -2
- data/lib/anthropic/models/beta/dream_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_create_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_list_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_store_update_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +3 -2
- data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +10 -0
- data/lib/anthropic/models/beta/message_create_params.rb +10 -0
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +10 -0
- data/lib/anthropic/models/beta/organization/beta_spend_limit.rb +14 -4
- data/lib/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rb +25 -0
- data/lib/anthropic/models/beta/organization/beta_spend_summary.rb +28 -8
- data/lib/anthropic/models/beta/organization/telemetry_destination_create_params.rb +3 -2
- data/lib/anthropic/models/beta/organization/telemetry_destination_delete_params.rb +7 -2
- data/lib/anthropic/models/beta/organization/telemetry_destination_list_params.rb +3 -2
- data/lib/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rb +7 -2
- data/lib/anthropic/models/beta/organization/telemetry_destination_test_params.rb +7 -2
- data/lib/anthropic/models/beta/organization/telemetry_destination_update_params.rb +3 -2
- data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rb +7 -2
- data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rb +3 -2
- data/lib/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rb +7 -2
- data/lib/anthropic/models/beta/session_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/session_create_params.rb +3 -2
- data/lib/anthropic/models/beta/session_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/session_list_params.rb +3 -2
- data/lib/anthropic/models/beta/session_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/session_update_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/event_list_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/event_send_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/event_stream_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_add_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_list_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/resource_update_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/thread_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/thread_list_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/thread_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/threads/event_list_params.rb +3 -2
- data/lib/anthropic/models/beta/sessions/threads/event_stream_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_create_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_list_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +3 -2
- data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_create_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_list_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/user_profile_update_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_create_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_list_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/vault_update_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_archive_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_create_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_delete_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_list_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_retrieve_params.rb +3 -2
- data/lib/anthropic/models/beta/vaults/credential_update_params.rb +3 -2
- data/lib/anthropic/models/message_count_tokens_params.rb +32 -1
- data/lib/anthropic/models/message_create_params.rb +32 -1
- data/lib/anthropic/models/messages/batch_create_params.rb +38 -1
- data/lib/anthropic/models/thinking_types.rb +17 -2
- data/lib/anthropic/models/usage.rb +22 -1
- data/lib/anthropic/resources/beta/agents/versions.rb +1 -1
- data/lib/anthropic/resources/beta/agents.rb +5 -5
- data/lib/anthropic/resources/beta/deployment_runs.rb +2 -2
- data/lib/anthropic/resources/beta/deployments.rb +8 -8
- data/lib/anthropic/resources/beta/dreams.rb +5 -5
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +5 -5
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +3 -3
- data/lib/anthropic/resources/beta/memory_stores.rb +6 -6
- data/lib/anthropic/resources/beta/organization/spend_limits.rb +3 -2
- data/lib/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rb +11 -3
- data/lib/anthropic/resources/beta/organization/telemetry_destinations.rb +18 -6
- data/lib/anthropic/resources/beta/sessions/events.rb +3 -3
- data/lib/anthropic/resources/beta/sessions/resources.rb +5 -5
- data/lib/anthropic/resources/beta/sessions/threads/events.rb +2 -2
- data/lib/anthropic/resources/beta/sessions/threads.rb +3 -3
- data/lib/anthropic/resources/beta/sessions.rb +6 -6
- data/lib/anthropic/resources/beta/tunnels/certificates.rb +4 -4
- data/lib/anthropic/resources/beta/tunnels.rb +6 -6
- data/lib/anthropic/resources/beta/user_profiles.rb +5 -5
- data/lib/anthropic/resources/beta/vaults/credentials.rb +7 -7
- data/lib/anthropic/resources/beta/vaults.rb +6 -6
- data/lib/anthropic/resources/messages.rb +12 -4
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +1 -0
- data/rbi/anthropic/models/beta/agent_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/agent_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/agent_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/agent_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/agent_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/agents/version_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/beta_thinking_types.rbi +31 -2
- data/rbi/anthropic/models/beta/deployment_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_pause_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_run_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_run_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_run_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_unpause_params.rbi +4 -2
- data/rbi/anthropic/models/beta/deployment_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_cancel_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_store_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +4 -2
- data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +15 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +15 -0
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +15 -0
- data/rbi/anthropic/models/beta/organization/beta_spend_limit.rbi +9 -2
- data/rbi/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbi +38 -0
- data/rbi/anthropic/models/beta/organization/beta_spend_summary.rbi +18 -4
- data/rbi/anthropic/models/beta/organization/telemetry_destination_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/telemetry_destination_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/telemetry_destination_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/telemetry_destination_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/telemetry_destination_test_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/telemetry_destination_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_add_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/organization/telemetry_destinations/workspace_remove_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/session_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/event_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/event_send_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/event_stream_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_add_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/resource_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/thread_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/thread_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/thread_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/threads/event_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/sessions/threads/event_stream_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/user_profile_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vault_update_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_archive_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_create_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_delete_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_list_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_mcp_oauth_validate_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_retrieve_params.rbi +4 -2
- data/rbi/anthropic/models/beta/vaults/credential_update_params.rbi +4 -2
- data/rbi/anthropic/models/message_count_tokens_params.rbi +57 -0
- data/rbi/anthropic/models/message_create_params.rbi +49 -0
- data/rbi/anthropic/models/messages/batch_create_params.rbi +73 -0
- data/rbi/anthropic/models/thinking_types.rbi +27 -2
- data/rbi/anthropic/models/usage.rbi +29 -3
- data/rbi/anthropic/resources/beta/agents/versions.rbi +2 -1
- data/rbi/anthropic/resources/beta/agents.rbi +10 -5
- data/rbi/anthropic/resources/beta/deployment_runs.rbi +4 -2
- data/rbi/anthropic/resources/beta/deployments.rbi +16 -8
- data/rbi/anthropic/resources/beta/dreams.rbi +10 -5
- data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +10 -5
- data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +6 -3
- data/rbi/anthropic/resources/beta/memory_stores.rbi +12 -6
- data/rbi/anthropic/resources/beta/messages.rbi +15 -0
- data/rbi/anthropic/resources/beta/organization/spend_limits.rbi +3 -2
- data/rbi/anthropic/resources/beta/organization/telemetry_destinations/workspaces.rbi +6 -3
- data/rbi/anthropic/resources/beta/organization/telemetry_destinations.rbi +12 -6
- data/rbi/anthropic/resources/beta/sessions/events.rbi +6 -3
- data/rbi/anthropic/resources/beta/sessions/resources.rbi +10 -5
- data/rbi/anthropic/resources/beta/sessions/threads/events.rbi +4 -2
- data/rbi/anthropic/resources/beta/sessions/threads.rbi +6 -3
- data/rbi/anthropic/resources/beta/sessions.rbi +12 -6
- data/rbi/anthropic/resources/beta/tunnels/certificates.rbi +8 -4
- data/rbi/anthropic/resources/beta/tunnels.rbi +12 -6
- data/rbi/anthropic/resources/beta/user_profiles.rbi +13 -5
- data/rbi/anthropic/resources/beta/vaults/credentials.rbi +14 -7
- data/rbi/anthropic/resources/beta/vaults.rbi +12 -6
- data/rbi/anthropic/resources/messages.rbi +32 -0
- data/sig/anthropic/models/beta/beta_thinking_types.rbs +5 -0
- data/sig/anthropic/models/beta/organization/beta_spend_limit.rbs +6 -0
- data/sig/anthropic/models/beta/organization/beta_spend_limit_usage_tier_scope.rbs +17 -0
- data/sig/anthropic/models/beta/organization/beta_spend_summary.rbs +12 -0
- data/sig/anthropic/models/message_count_tokens_params.rbs +16 -0
- data/sig/anthropic/models/message_create_params.rbs +16 -0
- data/sig/anthropic/models/messages/batch_create_params.rbs +16 -0
- data/sig/anthropic/models/thinking_types.rbs +5 -0
- data/sig/anthropic/models/usage.rbs +19 -3
- data/sig/anthropic/resources/messages.rbs +4 -0
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e0c2457772d14d2f544f1e29c0257bb58470949ad75041d38a87337ef6588eb
|
|
4
|
+
data.tar.gz: f3a5fe15373f2aa6391d7ed66ed73687b46523d92fb359e4a9621df437183063
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 519eadd659c81d42cff516a695728b4bf93f69f6ad8fe7b931e765673421e427f6f8f00c35154c41ed4e5b211119150ce9949bc97cbe19d63893738ca15c2dbd
|
|
7
|
+
data.tar.gz: '088cd32906704806d4be30d6ddf5291d4a3565b1780bf9f6ba87b1a2bf26fa501a2d158e7743d5afe2a4adda9c8762d94acbe6df91a077db75319d64ce065fc5'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.80.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.79.0...v1.80.0) (2026-10-15)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **api:** add between_tools to thinking types in model capabilities
|
|
8
|
+
* **api:** add the speed parameter and usage.speed to Messages
|
|
9
|
+
* **api:** return a Console organization's usage-tier spend cap as a read-only spend limit
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **ci:** speed up breaking change detection
|
|
15
|
+
* **docs:** describe headers on Managed Agents and telemetry endpoints
|
|
16
|
+
* **tests:** cover trace context propagation and failing telemetry
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Documentation
|
|
20
|
+
|
|
21
|
+
* **api:** note that some models need a beta header to use speed
|
|
22
|
+
|
|
3
23
|
## [1.79.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.78.0...v1.79.0) (2026-10-14)
|
|
4
24
|
|
|
5
25
|
### Features
|
|
@@ -8,7 +28,9 @@
|
|
|
8
28
|
* **api:** add organization_type_not_supported error to spend limit lists
|
|
9
29
|
* **api:** add telemetry destination test endpoint
|
|
10
30
|
* **api:** add telemetry destinations to the Admin API
|
|
11
|
-
* **client:** add
|
|
31
|
+
* **client:** add native support for OpenTelemetry tracing
|
|
32
|
+
|
|
33
|
+
If your app registers a global tracer provider, the SDK will create spans with it after upgrading, and they'll be exported with the rest of your traces. Requests will also get trace context headers from the global propagator. To disable, pass `open_telemetry: false` to the client or set `ANTHROPIC_OPEN_TELEMETRY=false`. Learn more in the [documentation](https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk).
|
|
12
34
|
|
|
13
35
|
|
|
14
36
|
### Bug Fixes
|
data/README.md
CHANGED
|
@@ -38,10 +38,11 @@ module Anthropic
|
|
|
38
38
|
# — and the fallback's events are spliced onto the still-open stream, so the
|
|
39
39
|
# client sees one continuous message: a `fallback` content block at each
|
|
40
40
|
# model boundary, monotonic block indices, and per-hop `usage.iterations` on
|
|
41
|
-
# the final `message_delta`. Only `model`
|
|
42
|
-
# path
|
|
43
|
-
#
|
|
44
|
-
#
|
|
41
|
+
# the final `message_delta`. Only `model` and `speed` are honored from each
|
|
42
|
+
# entry on this path. The other per-entry overrides are ignored, because the
|
|
43
|
+
# credit token is tied to the refused request's body. A `speed` value replaces
|
|
44
|
+
# the request's, and `speed: nil` omits it. A `between_tools` thinking config
|
|
45
|
+
# is always sent as `disabled` on this path.
|
|
45
46
|
#
|
|
46
47
|
# Credit tokens are sent in the object form with `mode: :best_effort`, so a
|
|
47
48
|
# failing redemption never rejects the retry — it proceeds at normal price
|
|
@@ -49,6 +50,10 @@ module Anthropic
|
|
|
49
50
|
# beta this requires is sent by default on every request the middleware
|
|
50
51
|
# handles; the `betas:` option controls this.
|
|
51
52
|
#
|
|
53
|
+
# A `speed: "fast"` request that falls back to an entry with no `speed`, and
|
|
54
|
+
# is rejected with a 429 or 529, is retried once on that entry without
|
|
55
|
+
# `speed`. Set `speed: "fast"` on the entry to keep it fast-only.
|
|
56
|
+
#
|
|
52
57
|
# To keep later requests on the model that accepted, pass a
|
|
53
58
|
# {BetaFallbackState} via the `fallback_state` request option; requests
|
|
54
59
|
# sharing that state start directly at the pinned fallback.
|
|
@@ -72,7 +77,7 @@ module Anthropic
|
|
|
72
77
|
# …) patch the original request body for that hop — a value overrides
|
|
73
78
|
# the param, an explicit `nil` unsets it, an absent key keeps the
|
|
74
79
|
# original value (an absent `thinking:` sends `between_tools` as
|
|
75
|
-
# `disabled`).
|
|
80
|
+
# `disabled`). On the streaming path only `speed:` patches it.
|
|
76
81
|
# @param betas [Array<String>] betas added to the `anthropic-beta` header
|
|
77
82
|
# of every `/v1/messages` request this middleware handles. Defaults to
|
|
78
83
|
# `["fallback-credit-2026-07-01"]`; pass `[]` to send none.
|
|
@@ -129,24 +134,24 @@ module Anthropic
|
|
|
129
134
|
end
|
|
130
135
|
|
|
131
136
|
streaming = req.streaming?
|
|
137
|
+
entry = @fallbacks.fetch(start_index) unless start_index == -1
|
|
132
138
|
initial_body =
|
|
133
|
-
if
|
|
139
|
+
if entry.nil?
|
|
134
140
|
body
|
|
135
141
|
elsif streaming
|
|
136
|
-
# Only `model`
|
|
137
|
-
#
|
|
138
|
-
|
|
139
|
-
degrade_between_tools(body.merge(model: @fallbacks.fetch(start_index).fetch(:model)))
|
|
142
|
+
# Only `model` and `speed` are honored on the streaming path: the credit
|
|
143
|
+
# token is tied to the refused request's body.
|
|
144
|
+
degrade_between_tools(patch(body, entry.slice(:speed)).merge(model: entry.fetch(:model)))
|
|
140
145
|
else
|
|
141
|
-
apply_fallback(body,
|
|
146
|
+
apply_fallback(body, entry)
|
|
142
147
|
end
|
|
143
|
-
res = nxt.call(req.with(body: initial_body))
|
|
148
|
+
res = entry ? send_hop(req, nxt, entry, initial_body).first : nxt.call(req.with(body: initial_body))
|
|
144
149
|
return res unless res.status < 300
|
|
145
150
|
|
|
146
151
|
if streaming
|
|
147
152
|
first_hop = start_index + 1
|
|
148
153
|
return res unless first_hop < @fallbacks.length
|
|
149
|
-
return splice_fallback_stream(req, res, nxt,
|
|
154
|
+
return splice_fallback_stream(req, res, nxt, initial_body, first_hop, pin)
|
|
150
155
|
end
|
|
151
156
|
|
|
152
157
|
handle_non_streaming(req, res, nxt, body, start_index, pin)
|
|
@@ -276,6 +281,25 @@ module Anthropic
|
|
|
276
281
|
{token: token, mode: Anthropic::Models::Beta::BetaFallbackCreditTokenParam::Mode::BEST_EFFORT}
|
|
277
282
|
end
|
|
278
283
|
|
|
284
|
+
# Send a request built from `entry`. One that is fast only because the
|
|
285
|
+
# original request was, and is rejected with a 429 or 529, is resent once
|
|
286
|
+
# without `speed`, and that response stands in for the first.
|
|
287
|
+
#
|
|
288
|
+
# @param req [Anthropic::APIRequest]
|
|
289
|
+
# @param nxt [#call]
|
|
290
|
+
# @param entry [Hash{Symbol=>Object}]
|
|
291
|
+
# @param hop_body [Hash{Symbol=>Object}]
|
|
292
|
+
# @return [Array(Anthropic::APIResponse, Boolean)] the response, and whether
|
|
293
|
+
# it answers the resend.
|
|
294
|
+
def send_hop(req, nxt, entry, hop_body)
|
|
295
|
+
res = nxt.call(req.with(body: hop_body))
|
|
296
|
+
return [res, false] unless [429, 529].include?(res.status)
|
|
297
|
+
return [res, false] if entry.key?(:speed) || hop_body[:speed].to_s != "fast"
|
|
298
|
+
|
|
299
|
+
Anthropic::Internal::Util.close_fused!(res.body)
|
|
300
|
+
[nxt.call(req.with(body: hop_body.except(:speed))), true]
|
|
301
|
+
end
|
|
302
|
+
|
|
279
303
|
# --- non-streaming ------------------------------------------------------
|
|
280
304
|
|
|
281
305
|
# @param req [Anthropic::APIRequest]
|
|
@@ -303,7 +327,7 @@ module Anthropic
|
|
|
303
327
|
hop_body = hop_body.merge(fallback_credit_token: credit_token_param(token)) if token
|
|
304
328
|
|
|
305
329
|
begin
|
|
306
|
-
hop_res =
|
|
330
|
+
hop_res = send_hop(req, nxt, entry, hop_body).first
|
|
307
331
|
rescue StandardError
|
|
308
332
|
hop_res = nil
|
|
309
333
|
end
|
|
@@ -359,7 +383,7 @@ module Anthropic
|
|
|
359
383
|
# @param req [Anthropic::APIRequest]
|
|
360
384
|
# @param res [Anthropic::APIResponse]
|
|
361
385
|
# @param nxt [#call]
|
|
362
|
-
# @param body [Hash{Symbol=>Object}] the
|
|
386
|
+
# @param body [Hash{Symbol=>Object}] the body built for stream A
|
|
363
387
|
# @param first_hop [Integer]
|
|
364
388
|
# @param pin [Proc]
|
|
365
389
|
# @return [Anthropic::APIResponse]
|
|
@@ -399,10 +423,12 @@ module Anthropic
|
|
|
399
423
|
iterations = [iteration_usage("message", a[:model] || "", a.dig(:refused, :usage))]
|
|
400
424
|
|
|
401
425
|
(first_hop...@fallbacks.length).each do |hop|
|
|
402
|
-
|
|
426
|
+
entry = @fallbacks.fetch(hop)
|
|
427
|
+
model = entry.fetch(:model).to_s
|
|
403
428
|
has_next = hop + 1 < @fallbacks.length
|
|
404
429
|
|
|
405
|
-
|
|
430
|
+
hop_body = degrade_between_tools(patch(body, entry.slice(:speed)))
|
|
431
|
+
res_b, sent, failed = issue_hop(req, nxt, hop_body, entry, token, base, partial)
|
|
406
432
|
|
|
407
433
|
if failed
|
|
408
434
|
next if has_next
|
|
@@ -465,15 +491,19 @@ module Anthropic
|
|
|
465
491
|
end
|
|
466
492
|
end
|
|
467
493
|
|
|
468
|
-
# Issue one fallback hop with a single 400-on-prefill retry
|
|
494
|
+
# Issue one fallback hop with a single 400-on-prefill retry, which stays
|
|
495
|
+
# without `speed` once the hop has been resent without it.
|
|
469
496
|
#
|
|
470
497
|
# @return [Array(Anthropic::APIResponse, Array<Hash>, false), Array(nil, Array<Hash>, true)]
|
|
471
498
|
# the response, the continuation actually sent (`base + partial`, or
|
|
472
499
|
# `base` if the prefill was dropped on retry), and whether the hop failed.
|
|
473
|
-
def issue_hop(req, nxt, body,
|
|
500
|
+
def issue_hop(req, nxt, body, entry, token, base, partial)
|
|
474
501
|
continuation = base + partial
|
|
475
502
|
2.times do |attempt|
|
|
476
|
-
hop_body = body.merge(
|
|
503
|
+
hop_body = body.merge(
|
|
504
|
+
model: entry.fetch(:model).to_s,
|
|
505
|
+
fallback_credit_token: credit_token_param(token)
|
|
506
|
+
)
|
|
477
507
|
unless continuation.empty?
|
|
478
508
|
hop_body = hop_body.merge(
|
|
479
509
|
messages: body.fetch(:messages) + [{role: :assistant, content: continuation}]
|
|
@@ -481,10 +511,11 @@ module Anthropic
|
|
|
481
511
|
end
|
|
482
512
|
|
|
483
513
|
begin
|
|
484
|
-
res =
|
|
514
|
+
res, resent = send_hop(req, nxt, entry, hop_body)
|
|
485
515
|
rescue StandardError
|
|
486
516
|
return [nil, continuation, true]
|
|
487
517
|
end
|
|
518
|
+
body = body.except(:speed) if resent
|
|
488
519
|
return [res, continuation, false] if res.status < 300
|
|
489
520
|
|
|
490
521
|
if attempt.zero? && res.status == 400 && !partial.empty?
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :agent_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param agent_id [String] Unique identifier of the agent to archive.
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|
|
@@ -83,7 +83,8 @@ module Anthropic
|
|
|
83
83
|
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::AgentCreateParams::Tool] }
|
|
84
84
|
|
|
85
85
|
# @!attribute betas
|
|
86
|
-
#
|
|
86
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
87
|
+
# header.
|
|
87
88
|
#
|
|
88
89
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
89
90
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -123,7 +124,7 @@ module Anthropic
|
|
|
123
124
|
#
|
|
124
125
|
# @param tools [Array<Anthropic::Models::Beta::BetaManagedAgentsAgentToolset20260401Params, Anthropic::Models::Beta::BetaManagedAgentsMCPToolsetParams, Anthropic::Models::Beta::BetaManagedAgentsCustomToolParams>] Tool configurations available to the agent. Maximum of 256 tools across all tool
|
|
125
126
|
#
|
|
126
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
127
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
127
128
|
#
|
|
128
129
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
129
130
|
#
|
|
@@ -39,7 +39,8 @@ module Anthropic
|
|
|
39
39
|
optional :page, String
|
|
40
40
|
|
|
41
41
|
# @!attribute betas
|
|
42
|
-
#
|
|
42
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
43
|
+
# header.
|
|
43
44
|
#
|
|
44
45
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
45
46
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -69,7 +70,7 @@ module Anthropic
|
|
|
69
70
|
#
|
|
70
71
|
# @param page [String] Opaque pagination cursor from a previous response.
|
|
71
72
|
#
|
|
72
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
73
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
73
74
|
#
|
|
74
75
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
75
76
|
#
|
|
@@ -22,7 +22,8 @@ module Anthropic
|
|
|
22
22
|
optional :version, Integer
|
|
23
23
|
|
|
24
24
|
# @!attribute betas
|
|
25
|
-
#
|
|
25
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
26
|
+
# header.
|
|
26
27
|
#
|
|
27
28
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
28
29
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -46,7 +47,7 @@ module Anthropic
|
|
|
46
47
|
#
|
|
47
48
|
# @param version [Integer] Agent version. Omit for the most recent version. Must be at least 1 if specified
|
|
48
49
|
#
|
|
49
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
50
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
50
51
|
#
|
|
51
52
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
52
53
|
#
|
|
@@ -109,7 +109,8 @@ module Anthropic
|
|
|
109
109
|
optional :version, Integer
|
|
110
110
|
|
|
111
111
|
# @!attribute betas
|
|
112
|
-
#
|
|
112
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
113
|
+
# header.
|
|
113
114
|
#
|
|
114
115
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
115
116
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -153,7 +154,7 @@ module Anthropic
|
|
|
153
154
|
#
|
|
154
155
|
# @param version [Integer] The agent's current version, used to prevent concurrent overwrites. Obtain this
|
|
155
156
|
#
|
|
156
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
157
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
157
158
|
#
|
|
158
159
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
159
160
|
#
|
|
@@ -28,7 +28,8 @@ module Anthropic
|
|
|
28
28
|
optional :page, String
|
|
29
29
|
|
|
30
30
|
# @!attribute betas
|
|
31
|
-
#
|
|
31
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
32
|
+
# header.
|
|
32
33
|
#
|
|
33
34
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
34
35
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -54,7 +55,7 @@ module Anthropic
|
|
|
54
55
|
#
|
|
55
56
|
# @param page [String] Opaque pagination cursor.
|
|
56
57
|
#
|
|
57
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
58
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
58
59
|
#
|
|
59
60
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
60
61
|
#
|
|
@@ -11,10 +11,23 @@ module Anthropic
|
|
|
11
11
|
# @return [Anthropic::Models::Beta::BetaCapabilitySupport]
|
|
12
12
|
required :adaptive, -> { Anthropic::Beta::BetaCapabilitySupport }
|
|
13
13
|
|
|
14
|
+
# @!attribute between_tools
|
|
15
|
+
# Whether the model accepts thinking with type 'between_tools' (thinking turned
|
|
16
|
+
# off, and any short progress updates the model writes between tool calls come
|
|
17
|
+
# back as thinking blocks). False exactly when a request that sends it gets a 400
|
|
18
|
+
# from this model. A request that sends 'between_tools' can still be rejected for
|
|
19
|
+
# another reason, such as an effort level the model does not allow with thinking
|
|
20
|
+
# off.
|
|
21
|
+
#
|
|
22
|
+
# @return [Anthropic::Models::Beta::BetaCapabilitySupport]
|
|
23
|
+
required :between_tools, -> { Anthropic::Beta::BetaCapabilitySupport }
|
|
24
|
+
|
|
14
25
|
# @!attribute disabled
|
|
15
26
|
# Whether the model accepts thinking with type 'disabled' (thinking turned off).
|
|
16
27
|
# False exactly when a request that sends it gets a 400 from this model. True on a
|
|
17
|
-
# model that does not support thinking.
|
|
28
|
+
# model that does not support thinking. A request that sends 'disabled' can still
|
|
29
|
+
# be rejected for another reason, such as an effort level the model does not allow
|
|
30
|
+
# with thinking off.
|
|
18
31
|
#
|
|
19
32
|
# @return [Anthropic::Models::Beta::BetaCapabilitySupport]
|
|
20
33
|
required :disabled, -> { Anthropic::Beta::BetaCapabilitySupport }
|
|
@@ -26,7 +39,7 @@ module Anthropic
|
|
|
26
39
|
# @return [Anthropic::Models::Beta::BetaCapabilitySupport]
|
|
27
40
|
required :enabled, -> { Anthropic::Beta::BetaCapabilitySupport }
|
|
28
41
|
|
|
29
|
-
# @!method initialize(adaptive:, disabled:, enabled:)
|
|
42
|
+
# @!method initialize(adaptive:, between_tools:, disabled:, enabled:)
|
|
30
43
|
# Which `thinking.type` values the model accepts on requests. Read each key on its
|
|
31
44
|
# own: for example, `enabled` can be false while `disabled` is true.
|
|
32
45
|
#
|
|
@@ -35,6 +48,8 @@ module Anthropic
|
|
|
35
48
|
#
|
|
36
49
|
# @param adaptive [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model accepts thinking with type 'adaptive' (the model decides wheth
|
|
37
50
|
#
|
|
51
|
+
# @param between_tools [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model accepts thinking with type 'between_tools' (thinking turned of
|
|
52
|
+
#
|
|
38
53
|
# @param disabled [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model accepts thinking with type 'disabled' (thinking turned off). F
|
|
39
54
|
#
|
|
40
55
|
# @param enabled [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model accepts thinking with type 'enabled' (extended thinking with a
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :deployment_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param deployment_id [String] Unique identifier of the deployment to archive.
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|
|
@@ -83,7 +83,8 @@ module Anthropic
|
|
|
83
83
|
optional :vault_ids, Anthropic::Internal::Type::ArrayOf[String]
|
|
84
84
|
|
|
85
85
|
# @!attribute betas
|
|
86
|
-
#
|
|
86
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
87
|
+
# header.
|
|
87
88
|
#
|
|
88
89
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
89
90
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -123,7 +124,7 @@ module Anthropic
|
|
|
123
124
|
#
|
|
124
125
|
# @param vault_ids [Array<String>] Vault IDs for stored credentials the agent can use during sessions created from
|
|
125
126
|
#
|
|
126
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
127
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
127
128
|
#
|
|
128
129
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
129
130
|
#
|
|
@@ -52,7 +52,8 @@ module Anthropic
|
|
|
52
52
|
optional :status, enum: -> { Anthropic::Beta::BetaManagedAgentsDeploymentStatus }
|
|
53
53
|
|
|
54
54
|
# @!attribute betas
|
|
55
|
-
#
|
|
55
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
56
|
+
# header.
|
|
56
57
|
#
|
|
57
58
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
58
59
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -86,7 +87,7 @@ module Anthropic
|
|
|
86
87
|
#
|
|
87
88
|
# @param status [Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeploymentStatus] Filter by status: `active` or `paused`. Omit for both. To include archived deplo
|
|
88
89
|
#
|
|
89
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
90
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
90
91
|
#
|
|
91
92
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
92
93
|
#
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :deployment_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param deployment_id [String] Unique identifier of the deployment to pause.
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :deployment_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param deployment_id [String] Unique identifier of the deployment.
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|
|
@@ -67,7 +67,8 @@ module Anthropic
|
|
|
67
67
|
optional :trigger_type, enum: -> { Anthropic::Beta::BetaManagedAgentsTriggerType }
|
|
68
68
|
|
|
69
69
|
# @!attribute betas
|
|
70
|
-
#
|
|
70
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
71
|
+
# header.
|
|
71
72
|
#
|
|
72
73
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
73
74
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -105,7 +106,7 @@ module Anthropic
|
|
|
105
106
|
#
|
|
106
107
|
# @param trigger_type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsTriggerType] Filter runs by what triggered them. Omit to return all runs.
|
|
107
108
|
#
|
|
108
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
109
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
109
110
|
#
|
|
110
111
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
111
112
|
#
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :deployment_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param deployment_id [String] Unique identifier of the deployment to run.
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :deployment_run_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param deployment_run_id [String] Unique identifier of the deployment run.
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :deployment_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param deployment_id [String] Unique identifier of the deployment to unpause.
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|
|
@@ -92,7 +92,8 @@ module Anthropic
|
|
|
92
92
|
optional :vault_ids, Anthropic::Internal::Type::ArrayOf[String], nil?: true
|
|
93
93
|
|
|
94
94
|
# @!attribute betas
|
|
95
|
-
#
|
|
95
|
+
# This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
96
|
+
# header.
|
|
96
97
|
#
|
|
97
98
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
98
99
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -134,7 +135,7 @@ module Anthropic
|
|
|
134
135
|
#
|
|
135
136
|
# @param vault_ids [Array<String>, nil] Vault IDs. Full replacement. Omit to preserve; send empty array or null to clear
|
|
136
137
|
#
|
|
137
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
138
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `managed-agents-2026-04-01` in this
|
|
138
139
|
#
|
|
139
140
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
140
141
|
#
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :dream_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `dreaming-2026-04-21` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param dream_id [String] The ID of the dream to archive (`drm_...`).
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `dreaming-2026-04-21` in this heade
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|
|
@@ -15,7 +15,8 @@ module Anthropic
|
|
|
15
15
|
required :dream_id, String
|
|
16
16
|
|
|
17
17
|
# @!attribute betas
|
|
18
|
-
#
|
|
18
|
+
# This endpoint is in beta: requests must send `dreaming-2026-04-21` in this
|
|
19
|
+
# header.
|
|
19
20
|
#
|
|
20
21
|
# @return [Array<Symbol, String, Anthropic::Models::AnthropicBeta>, nil]
|
|
21
22
|
optional :betas, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::AnthropicBeta] }
|
|
@@ -37,7 +38,7 @@ module Anthropic
|
|
|
37
38
|
#
|
|
38
39
|
# @param dream_id [String] The ID of the dream to cancel (`drm_...`).
|
|
39
40
|
#
|
|
40
|
-
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>]
|
|
41
|
+
# @param betas [Array<Symbol, String, Anthropic::Models::AnthropicBeta>] This endpoint is in beta: requests must send `dreaming-2026-04-21` in this heade
|
|
41
42
|
#
|
|
42
43
|
# @param workspace_id [String] Optional header to select the Workspace for this request. The value is a Workspa
|
|
43
44
|
#
|