anthropic 1.34.0 → 1.36.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 +34 -0
- data/README.md +1 -1
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_compaction_block.rb +9 -1
- data/lib/anthropic/models/beta/beta_compaction_block_param.rb +9 -1
- data/lib/anthropic/models/beta/beta_compaction_content_block_delta.rb +10 -1
- data/lib/anthropic/models/beta/beta_effort_capability.rb +9 -1
- data/lib/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rb +36 -0
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store.rb +82 -0
- data/lib/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rb +77 -0
- data/lib/anthropic/models/beta/beta_managed_agents_model.rb +5 -0
- data/lib/anthropic/models/beta/beta_managed_agents_session.rb +2 -2
- data/lib/anthropic/models/beta/beta_output_config.rb +10 -1
- data/lib/anthropic/models/beta/beta_token_task_budget.rb +42 -0
- data/lib/anthropic/models/beta/beta_user_profile.rb +87 -0
- data/lib/anthropic/models/beta/beta_user_profile_enrollment_url.rb +49 -0
- data/lib/anthropic/models/beta/beta_user_profile_trust_grant.rb +34 -0
- data/lib/anthropic/models/beta/memory_store_archive_params.rb +31 -0
- data/lib/anthropic/models/beta/memory_store_create_params.rb +45 -0
- data/lib/anthropic/models/beta/memory_store_delete_params.rb +31 -0
- data/lib/anthropic/models/beta/memory_store_list_params.rb +64 -0
- data/lib/anthropic/models/beta/memory_store_retrieve_params.rb +31 -0
- data/lib/anthropic/models/beta/memory_store_update_params.rb +58 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rb +24 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rb +35 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rb +35 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rb +36 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rb +36 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_error.rb +44 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rb +95 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rb +23 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rb +47 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rb +36 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rb +35 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rb +117 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rb +21 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rb +20 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rb +35 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rb +35 -0
- data/lib/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rb +35 -0
- data/lib/anthropic/models/beta/memory_stores/memory_create_params.rb +55 -0
- data/lib/anthropic/models/beta/memory_stores/memory_delete_params.rb +48 -0
- data/lib/anthropic/models/beta/memory_stores/memory_list_params.rb +105 -0
- data/lib/anthropic/models/beta/memory_stores/memory_retrieve_params.rb +48 -0
- data/lib/anthropic/models/beta/memory_stores/memory_update_params.rb +69 -0
- data/lib/anthropic/models/beta/memory_stores/memory_version_list_params.rb +105 -0
- data/lib/anthropic/models/beta/memory_stores/memory_version_redact_params.rb +40 -0
- data/lib/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rb +48 -0
- data/lib/anthropic/models/beta/message_create_params.rb +13 -7
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +13 -7
- data/lib/anthropic/models/beta/session_create_params.rb +6 -3
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rb +104 -0
- data/lib/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rb +6 -1
- data/lib/anthropic/models/beta/sessions/resource_retrieve_response.rb +4 -1
- data/lib/anthropic/models/beta/sessions/resource_update_response.rb +4 -1
- data/lib/anthropic/models/beta/user_profile_create_enrollment_url_params.rb +31 -0
- data/lib/anthropic/models/beta/user_profile_create_params.rb +46 -0
- data/lib/anthropic/models/beta/user_profile_list_params.rb +59 -0
- data/lib/anthropic/models/beta/user_profile_retrieve_params.rb +31 -0
- data/lib/anthropic/models/beta/user_profile_update_params.rb +54 -0
- data/lib/anthropic/models/completion_create_params.rb +14 -6
- data/lib/anthropic/models/effort_capability.rb +9 -1
- data/lib/anthropic/models/message_create_params.rb +3 -6
- data/lib/anthropic/models/messages/batch_create_params.rb +3 -6
- data/lib/anthropic/models/model.rb +5 -0
- data/lib/anthropic/models/output_config.rb +1 -0
- data/lib/anthropic/resources/beta/memory_stores/memories.rb +211 -0
- data/lib/anthropic/resources/beta/memory_stores/memory_versions.rb +151 -0
- data/lib/anthropic/resources/beta/memory_stores.rb +197 -0
- data/lib/anthropic/resources/beta/messages/batches.rb +7 -1
- data/lib/anthropic/resources/beta/messages.rb +7 -2
- data/lib/anthropic/resources/beta/sessions/events.rb +7 -1
- data/lib/anthropic/resources/beta/sessions/resources.rb +3 -3
- data/lib/anthropic/resources/beta/sessions.rb +1 -1
- data/lib/anthropic/resources/beta/user_profiles.rb +160 -0
- data/lib/anthropic/resources/beta.rb +8 -0
- data/lib/anthropic/resources/completions.rb +4 -1
- data/lib/anthropic/resources/messages/batches.rb +1 -1
- data/lib/anthropic/resources/messages.rb +1 -1
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +48 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +5 -0
- data/rbi/anthropic/models/beta/beta_compaction_block.rbi +20 -4
- data/rbi/anthropic/models/beta/beta_compaction_block_param.rbi +9 -1
- data/rbi/anthropic/models/beta/beta_compaction_content_block_delta.rbi +24 -5
- data/rbi/anthropic/models/beta/beta_effort_capability.rbi +18 -3
- data/rbi/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rbi +81 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store.rbi +127 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbi +154 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_model.rbi +7 -0
- data/rbi/anthropic/models/beta/beta_managed_agents_session.rbi +2 -1
- data/rbi/anthropic/models/beta/beta_output_config.rbi +23 -3
- data/rbi/anthropic/models/beta/beta_token_task_budget.rbi +59 -0
- data/rbi/anthropic/models/beta/beta_user_profile.rbi +128 -0
- data/rbi/anthropic/models/beta/beta_user_profile_enrollment_url.rbi +92 -0
- data/rbi/anthropic/models/beta/beta_user_profile_trust_grant.rbi +86 -0
- data/rbi/anthropic/models/beta/memory_store_archive_params.rbi +68 -0
- data/rbi/anthropic/models/beta/memory_store_create_params.rbi +86 -0
- data/rbi/anthropic/models/beta/memory_store_delete_params.rbi +68 -0
- data/rbi/anthropic/models/beta/memory_store_list_params.rbi +117 -0
- data/rbi/anthropic/models/beta/memory_store_retrieve_params.rbi +68 -0
- data/rbi/anthropic/models/beta/memory_store_update_params.rbi +92 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbi +32 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rbi +80 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbi +83 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbi +83 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbi +80 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbi +41 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbi +135 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbi +31 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbi +104 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbi +83 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbi +80 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbi +209 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbi +49 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbi +44 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbi +83 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbi +80 -0
- data/rbi/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rbi +80 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_create_params.rbi +107 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_delete_params.rbi +88 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_list_params.rbi +213 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_retrieve_params.rbi +101 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_update_params.rbi +135 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_version_list_params.rbi +196 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_version_redact_params.rbi +77 -0
- data/rbi/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbi +101 -0
- data/rbi/anthropic/models/beta/message_create_params.rbi +16 -12
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +19 -15
- data/rbi/anthropic/models/beta/session_create_params.rbi +10 -5
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbi +186 -0
- data/rbi/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbi +3 -1
- data/rbi/anthropic/models/beta/sessions/resource_retrieve_response.rbi +2 -1
- data/rbi/anthropic/models/beta/sessions/resource_update_response.rbi +2 -1
- data/rbi/anthropic/models/beta/user_profile_create_enrollment_url_params.rbi +68 -0
- data/rbi/anthropic/models/beta/user_profile_create_params.rbi +87 -0
- data/rbi/anthropic/models/beta/user_profile_list_params.rbi +135 -0
- data/rbi/anthropic/models/beta/user_profile_retrieve_params.rbi +68 -0
- data/rbi/anthropic/models/beta/user_profile_update_params.rbi +95 -0
- data/rbi/anthropic/models/completion_create_params.rbi +6 -12
- data/rbi/anthropic/models/effort_capability.rbi +16 -3
- data/rbi/anthropic/models/message_create_params.rbi +6 -12
- data/rbi/anthropic/models/messages/batch_create_params.rbi +6 -12
- data/rbi/anthropic/models/model.rbi +4 -0
- data/rbi/anthropic/models/output_config.rbi +1 -0
- data/rbi/anthropic/resources/beta/memory_stores/memories.rbi +177 -0
- data/rbi/anthropic/resources/beta/memory_stores/memory_versions.rbi +117 -0
- data/rbi/anthropic/resources/beta/memory_stores.rbi +157 -0
- data/rbi/anthropic/resources/beta/messages.rbi +14 -12
- data/rbi/anthropic/resources/beta/sessions.rbi +2 -1
- data/rbi/anthropic/resources/beta/user_profiles.rbi +123 -0
- data/rbi/anthropic/resources/beta.rbi +6 -0
- data/rbi/anthropic/resources/completions.rbi +6 -12
- data/rbi/anthropic/resources/messages.rbi +6 -12
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_compaction_block.rbs +14 -3
- data/sig/anthropic/models/beta/beta_compaction_block_param.rbs +7 -2
- data/sig/anthropic/models/beta/beta_compaction_content_block_delta.rbs +17 -3
- data/sig/anthropic/models/beta/beta_effort_capability.rbs +8 -3
- data/sig/anthropic/models/beta/beta_managed_agents_deleted_memory_store.rbs +39 -0
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store.rbs +73 -0
- data/sig/anthropic/models/beta/beta_managed_agents_memory_store_resource_param.rbs +60 -0
- data/sig/anthropic/models/beta/beta_managed_agents_model.rbs +5 -1
- data/sig/anthropic/models/beta/beta_output_config.rbs +10 -4
- data/sig/anthropic/models/beta/beta_token_task_budget.rbs +26 -0
- data/sig/anthropic/models/beta/beta_user_profile.rbs +64 -0
- data/sig/anthropic/models/beta/beta_user_profile_enrollment_url.rbs +44 -0
- data/sig/anthropic/models/beta/beta_user_profile_trust_grant.rbs +34 -0
- data/sig/anthropic/models/beta/memory_store_archive_params.rbs +37 -0
- data/sig/anthropic/models/beta/memory_store_create_params.rbs +51 -0
- data/sig/anthropic/models/beta/memory_store_delete_params.rbs +37 -0
- data/sig/anthropic/models/beta/memory_store_list_params.rbs +67 -0
- data/sig/anthropic/models/beta/memory_store_retrieve_params.rbs +37 -0
- data/sig/anthropic/models/beta/memory_store_update_params.rbs +52 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_actor.rbs +18 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_api_actor.rbs +39 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_conflict_error.rbs +41 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_content_sha256_precondition.rbs +41 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_deleted_memory.rbs +39 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_error.rbs +27 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory.rbs +79 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_list_item.rbs +17 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_path_conflict_error.rbs +55 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_precondition_failed_error.rbs +41 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_prefix.rbs +39 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version.rbs +102 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_version_operation.rbs +20 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_memory_view.rbs +18 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_precondition.rbs +41 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_session_actor.rbs +39 -0
- data/sig/anthropic/models/beta/memory_stores/beta_managed_agents_user_actor.rbs +39 -0
- data/sig/anthropic/models/beta/memory_stores/memory_create_params.rbs +58 -0
- data/sig/anthropic/models/beta/memory_stores/memory_delete_params.rbs +51 -0
- data/sig/anthropic/models/beta/memory_stores/memory_list_params.rbs +103 -0
- data/sig/anthropic/models/beta/memory_stores/memory_retrieve_params.rbs +53 -0
- data/sig/anthropic/models/beta/memory_stores/memory_update_params.rbs +72 -0
- data/sig/anthropic/models/beta/memory_stores/memory_version_list_params.rbs +106 -0
- data/sig/anthropic/models/beta/memory_stores/memory_version_redact_params.rbs +44 -0
- data/sig/anthropic/models/beta/memory_stores/memory_version_retrieve_params.rbs +53 -0
- data/sig/anthropic/models/beta/message_create_params.rbs +5 -0
- data/sig/anthropic/models/beta/messages/batch_create_params.rbs +8 -3
- data/sig/anthropic/models/beta/session_create_params.rbs +1 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_memory_store_resource.rbs +77 -0
- data/sig/anthropic/models/beta/sessions/beta_managed_agents_session_resource.rbs +1 -0
- data/sig/anthropic/models/beta/sessions/resource_retrieve_response.rbs +1 -0
- data/sig/anthropic/models/beta/sessions/resource_update_response.rbs +1 -0
- data/sig/anthropic/models/beta/user_profile_create_enrollment_url_params.rbs +37 -0
- data/sig/anthropic/models/beta/user_profile_create_params.rbs +44 -0
- data/sig/anthropic/models/beta/user_profile_list_params.rbs +66 -0
- data/sig/anthropic/models/beta/user_profile_retrieve_params.rbs +37 -0
- data/sig/anthropic/models/beta/user_profile_update_params.rbs +49 -0
- data/sig/anthropic/models/effort_capability.rbs +8 -3
- data/sig/anthropic/models/model.rbs +5 -1
- data/sig/anthropic/models/output_config.rbs +2 -1
- data/sig/anthropic/resources/beta/memory_stores/memories.rbs +60 -0
- data/sig/anthropic/resources/beta/memory_stores/memory_versions.rbs +41 -0
- data/sig/anthropic/resources/beta/memory_stores.rbs +58 -0
- data/sig/anthropic/resources/beta/messages.rbs +2 -0
- data/sig/anthropic/resources/beta/user_profiles.rbs +44 -0
- data/sig/anthropic/resources/beta.rbs +4 -0
- metadata +146 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fffc686d05ec7aeed473cfbb56ad7102f8a07cfe3b0c33585dfd30b8f31508c
|
|
4
|
+
data.tar.gz: d3db83ed038385606895eafca58148672b5395e9657bfa56c94b0d4fa59673b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 71b7782d5c2fc57aeb906baf576058d3cad43d7a838544a6ab7af0c56e9809045d0e17706fa63b115f4a03f7197ffee3ca12f0bb795aad7f3afebed606e10130
|
|
7
|
+
data.tar.gz: 5478d0a6623555fd59f46b5b88359295bc24d2cbe31bee788fd0f18eac003a7d225280c870da73a406301c13247e8847951149ff0d7835cc26495254efa59958
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.36.0 (2026-04-23)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.35.0...v1.36.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.35.0...v1.36.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** CMA Memory public beta ([9fafd1a](https://github.com/anthropics/anthropic-sdk-ruby/commit/9fafd1abe16d0398c6e59be0717a9ef9cb014347))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **api:** fix errors in api spec ([074fa8d](https://github.com/anthropics/anthropic-sdk-ruby/commit/074fa8dac4cdebc8eababcac95ca4fe9dc7970d3))
|
|
15
|
+
* **api:** restore missing features ([4496fac](https://github.com/anthropics/anthropic-sdk-ruby/commit/4496facb8130e48340a2c4107d3aaf412b5cf4eb))
|
|
16
|
+
* avoid gzip buffering during streaming ([307c594](https://github.com/anthropics/anthropic-sdk-ruby/commit/307c5944e27dd3eab5aa3c6f6e7ed02ca5b7cece))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Chores
|
|
20
|
+
|
|
21
|
+
* **internal:** more robust bootstrap script ([e8f157e](https://github.com/anthropics/anthropic-sdk-ruby/commit/e8f157e44e664c036c0b81584eee8919d55eb6db))
|
|
22
|
+
* **tests:** bump steady to v0.22.1 ([7f079ce](https://github.com/anthropics/anthropic-sdk-ruby/commit/7f079cee1a662245ce67c12b1b7790832dd931ad))
|
|
23
|
+
|
|
24
|
+
## 1.35.0 (2026-04-16)
|
|
25
|
+
|
|
26
|
+
Full Changelog: [v1.34.0...v1.35.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.34.0...v1.35.0)
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **api:** add claude-opus-4-7, token budgets and user_profiles ([026649a](https://github.com/anthropics/anthropic-sdk-ruby/commit/026649ae9a26108258ef8de6532eb02e429e87d9))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Chores
|
|
34
|
+
|
|
35
|
+
* **ci:** remove release-doctor workflow ([0947aca](https://github.com/anthropics/anthropic-sdk-ruby/commit/0947acaf0af66d9918f6a6faea03ab8f129932af))
|
|
36
|
+
|
|
3
37
|
## 1.34.0 (2026-04-14)
|
|
4
38
|
|
|
5
39
|
Full Changelog: [v1.33.1...v1.34.0](https://github.com/anthropics/anthropic-sdk-ruby/compare/v1.33.1...v1.34.0)
|
data/README.md
CHANGED
|
@@ -49,6 +49,8 @@ module Anthropic
|
|
|
49
49
|
|
|
50
50
|
variant const: -> { Anthropic::Models::AnthropicBeta::OUTPUT_300K_2026_03_24 }
|
|
51
51
|
|
|
52
|
+
variant const: -> { Anthropic::Models::AnthropicBeta::USER_PROFILES_2026_03_24 }
|
|
53
|
+
|
|
52
54
|
variant const: -> { Anthropic::Models::AnthropicBeta::ADVISOR_TOOL_2026_03_01 }
|
|
53
55
|
|
|
54
56
|
# @!method self.variants
|
|
@@ -81,6 +83,7 @@ module Anthropic
|
|
|
81
83
|
SKILLS_2025_10_02 = :"skills-2025-10-02"
|
|
82
84
|
FAST_MODE_2026_02_01 = :"fast-mode-2026-02-01"
|
|
83
85
|
OUTPUT_300K_2026_03_24 = :"output-300k-2026-03-24"
|
|
86
|
+
USER_PROFILES_2026_03_24 = :"user-profiles-2026-03-24"
|
|
84
87
|
ADVISOR_TOOL_2026_03_01 = :"advisor-tool-2026-03-01"
|
|
85
88
|
|
|
86
89
|
# @!endgroup
|
|
@@ -10,12 +10,18 @@ module Anthropic
|
|
|
10
10
|
# @return [String, nil]
|
|
11
11
|
required :content, String, nil?: true
|
|
12
12
|
|
|
13
|
+
# @!attribute encrypted_content
|
|
14
|
+
# Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
15
|
+
#
|
|
16
|
+
# @return [String, nil]
|
|
17
|
+
required :encrypted_content, String, nil?: true
|
|
18
|
+
|
|
13
19
|
# @!attribute type
|
|
14
20
|
#
|
|
15
21
|
# @return [Symbol, :compaction]
|
|
16
22
|
required :type, const: :compaction
|
|
17
23
|
|
|
18
|
-
# @!method initialize(content:, type: :compaction)
|
|
24
|
+
# @!method initialize(content:, encrypted_content:, type: :compaction)
|
|
19
25
|
# A compaction block returned when autocompact is triggered.
|
|
20
26
|
#
|
|
21
27
|
# When content is None, it indicates the compaction failed to produce a valid
|
|
@@ -24,6 +30,8 @@ module Anthropic
|
|
|
24
30
|
#
|
|
25
31
|
# @param content [String, nil] Summary of compacted content, or null if compaction failed
|
|
26
32
|
#
|
|
33
|
+
# @param encrypted_content [String, nil] Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
34
|
+
#
|
|
27
35
|
# @param type [Symbol, :compaction]
|
|
28
36
|
end
|
|
29
37
|
end
|
|
@@ -21,7 +21,13 @@ module Anthropic
|
|
|
21
21
|
# @return [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil]
|
|
22
22
|
optional :cache_control, -> { Anthropic::Beta::BetaCacheControlEphemeral }, nil?: true
|
|
23
23
|
|
|
24
|
-
# @!
|
|
24
|
+
# @!attribute encrypted_content
|
|
25
|
+
# Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
26
|
+
#
|
|
27
|
+
# @return [String, nil]
|
|
28
|
+
optional :encrypted_content, String, nil?: true
|
|
29
|
+
|
|
30
|
+
# @!method initialize(content:, cache_control: nil, encrypted_content: nil, type: :compaction)
|
|
25
31
|
# A compaction block containing summary of previous context.
|
|
26
32
|
#
|
|
27
33
|
# Users should round-trip these blocks from responses to subsequent requests to
|
|
@@ -34,6 +40,8 @@ module Anthropic
|
|
|
34
40
|
#
|
|
35
41
|
# @param cache_control [Anthropic::Models::Beta::BetaCacheControlEphemeral, nil] Create a cache control breakpoint at this content block.
|
|
36
42
|
#
|
|
43
|
+
# @param encrypted_content [String, nil] Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
44
|
+
#
|
|
37
45
|
# @param type [Symbol, :compaction]
|
|
38
46
|
end
|
|
39
47
|
end
|
|
@@ -9,13 +9,22 @@ module Anthropic
|
|
|
9
9
|
# @return [String, nil]
|
|
10
10
|
required :content, String, nil?: true
|
|
11
11
|
|
|
12
|
+
# @!attribute encrypted_content
|
|
13
|
+
# Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
14
|
+
#
|
|
15
|
+
# @return [String, nil]
|
|
16
|
+
required :encrypted_content, String, nil?: true
|
|
17
|
+
|
|
12
18
|
# @!attribute type
|
|
13
19
|
#
|
|
14
20
|
# @return [Symbol, :compaction_delta]
|
|
15
21
|
required :type, const: :compaction_delta
|
|
16
22
|
|
|
17
|
-
# @!method initialize(content:, type: :compaction_delta)
|
|
23
|
+
# @!method initialize(content:, encrypted_content:, type: :compaction_delta)
|
|
18
24
|
# @param content [String, nil]
|
|
25
|
+
#
|
|
26
|
+
# @param encrypted_content [String, nil] Opaque metadata from prior compaction, to be round-tripped verbatim
|
|
27
|
+
#
|
|
19
28
|
# @param type [Symbol, :compaction_delta]
|
|
20
29
|
end
|
|
21
30
|
end
|
|
@@ -34,7 +34,13 @@ module Anthropic
|
|
|
34
34
|
# @return [Boolean]
|
|
35
35
|
required :supported, Anthropic::Internal::Type::Boolean
|
|
36
36
|
|
|
37
|
-
# @!
|
|
37
|
+
# @!attribute xhigh
|
|
38
|
+
# Indicates whether a capability is supported.
|
|
39
|
+
#
|
|
40
|
+
# @return [Anthropic::Models::Beta::BetaCapabilitySupport, nil]
|
|
41
|
+
required :xhigh, -> { Anthropic::Beta::BetaCapabilitySupport }, nil?: true
|
|
42
|
+
|
|
43
|
+
# @!method initialize(high:, low:, max:, medium:, supported:, xhigh:)
|
|
38
44
|
# Effort (reasoning_effort) capability details.
|
|
39
45
|
#
|
|
40
46
|
# @param high [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model supports high effort level.
|
|
@@ -46,6 +52,8 @@ module Anthropic
|
|
|
46
52
|
# @param medium [Anthropic::Models::Beta::BetaCapabilitySupport] Whether the model supports medium effort level.
|
|
47
53
|
#
|
|
48
54
|
# @param supported [Boolean] Whether this capability is supported by the model.
|
|
55
|
+
#
|
|
56
|
+
# @param xhigh [Anthropic::Models::Beta::BetaCapabilitySupport, nil] Indicates whether a capability is supported.
|
|
49
57
|
end
|
|
50
58
|
end
|
|
51
59
|
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::MemoryStores#delete
|
|
7
|
+
class BetaManagedAgentsDeletedMemoryStore < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
#
|
|
15
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeletedMemoryStore::Type]
|
|
16
|
+
required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsDeletedMemoryStore::Type }
|
|
17
|
+
|
|
18
|
+
# @!method initialize(id:, type:)
|
|
19
|
+
# @param id [String]
|
|
20
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsDeletedMemoryStore::Type]
|
|
21
|
+
|
|
22
|
+
# @see Anthropic::Models::Beta::BetaManagedAgentsDeletedMemoryStore#type
|
|
23
|
+
module Type
|
|
24
|
+
extend Anthropic::Internal::Type::Enum
|
|
25
|
+
|
|
26
|
+
MEMORY_STORE_DELETED = :memory_store_deleted
|
|
27
|
+
|
|
28
|
+
# @!method self.values
|
|
29
|
+
# @return [Array<Symbol>]
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
BetaManagedAgentsDeletedMemoryStore = Beta::BetaManagedAgentsDeletedMemoryStore
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::MemoryStores#create
|
|
7
|
+
class BetaManagedAgentsMemoryStore < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute created_at
|
|
14
|
+
# A timestamp in RFC 3339 format
|
|
15
|
+
#
|
|
16
|
+
# @return [Time]
|
|
17
|
+
required :created_at, Time
|
|
18
|
+
|
|
19
|
+
# @!attribute name
|
|
20
|
+
#
|
|
21
|
+
# @return [String]
|
|
22
|
+
required :name, String
|
|
23
|
+
|
|
24
|
+
# @!attribute type
|
|
25
|
+
#
|
|
26
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStore::Type]
|
|
27
|
+
required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsMemoryStore::Type }
|
|
28
|
+
|
|
29
|
+
# @!attribute updated_at
|
|
30
|
+
# A timestamp in RFC 3339 format
|
|
31
|
+
#
|
|
32
|
+
# @return [Time]
|
|
33
|
+
required :updated_at, Time
|
|
34
|
+
|
|
35
|
+
# @!attribute archived_at
|
|
36
|
+
# A timestamp in RFC 3339 format
|
|
37
|
+
#
|
|
38
|
+
# @return [Time, nil]
|
|
39
|
+
optional :archived_at, Time, nil?: true
|
|
40
|
+
|
|
41
|
+
# @!attribute description
|
|
42
|
+
#
|
|
43
|
+
# @return [String, nil]
|
|
44
|
+
optional :description, String
|
|
45
|
+
|
|
46
|
+
# @!attribute metadata
|
|
47
|
+
#
|
|
48
|
+
# @return [Hash{Symbol=>String}, nil]
|
|
49
|
+
optional :metadata, Anthropic::Internal::Type::HashOf[String]
|
|
50
|
+
|
|
51
|
+
# @!method initialize(id:, created_at:, name:, type:, updated_at:, archived_at: nil, description: nil, metadata: nil)
|
|
52
|
+
# @param id [String]
|
|
53
|
+
#
|
|
54
|
+
# @param created_at [Time] A timestamp in RFC 3339 format
|
|
55
|
+
#
|
|
56
|
+
# @param name [String]
|
|
57
|
+
#
|
|
58
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStore::Type]
|
|
59
|
+
#
|
|
60
|
+
# @param updated_at [Time] A timestamp in RFC 3339 format
|
|
61
|
+
#
|
|
62
|
+
# @param archived_at [Time, nil] A timestamp in RFC 3339 format
|
|
63
|
+
#
|
|
64
|
+
# @param description [String]
|
|
65
|
+
#
|
|
66
|
+
# @param metadata [Hash{Symbol=>String}]
|
|
67
|
+
|
|
68
|
+
# @see Anthropic::Models::Beta::BetaManagedAgentsMemoryStore#type
|
|
69
|
+
module Type
|
|
70
|
+
extend Anthropic::Internal::Type::Enum
|
|
71
|
+
|
|
72
|
+
MEMORY_STORE = :memory_store
|
|
73
|
+
|
|
74
|
+
# @!method self.values
|
|
75
|
+
# @return [Array<Symbol>]
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
BetaManagedAgentsMemoryStore = Beta::BetaManagedAgentsMemoryStore
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaManagedAgentsMemoryStoreResourceParam < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute memory_store_id
|
|
8
|
+
# The memory store ID (memstore\_...). Must belong to the caller's organization
|
|
9
|
+
# and workspace.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :memory_store_id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute type
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceParam::Type]
|
|
17
|
+
required :type, enum: -> { Anthropic::Beta::BetaManagedAgentsMemoryStoreResourceParam::Type }
|
|
18
|
+
|
|
19
|
+
# @!attribute access
|
|
20
|
+
# Access mode for an attached memory store.
|
|
21
|
+
#
|
|
22
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceParam::Access, nil]
|
|
23
|
+
optional :access,
|
|
24
|
+
enum: -> { Anthropic::Beta::BetaManagedAgentsMemoryStoreResourceParam::Access },
|
|
25
|
+
nil?: true
|
|
26
|
+
|
|
27
|
+
# @!attribute instructions
|
|
28
|
+
# Per-attachment guidance for the agent on how to use this store. Rendered into
|
|
29
|
+
# the memory section of the system prompt. Max 4096 chars.
|
|
30
|
+
#
|
|
31
|
+
# @return [String, nil]
|
|
32
|
+
optional :instructions, String, nil?: true
|
|
33
|
+
|
|
34
|
+
# @!method initialize(memory_store_id:, type:, access: nil, instructions: nil)
|
|
35
|
+
# Some parameter documentations has been truncated, see
|
|
36
|
+
# {Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceParam} for more
|
|
37
|
+
# details.
|
|
38
|
+
#
|
|
39
|
+
# Parameters for attaching a memory store to an agent session.
|
|
40
|
+
#
|
|
41
|
+
# @param memory_store_id [String] The memory store ID (memstore\_...). Must belong to the caller's organization
|
|
42
|
+
# and
|
|
43
|
+
#
|
|
44
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceParam::Type]
|
|
45
|
+
#
|
|
46
|
+
# @param access [Symbol, Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceParam::Access, nil] Access mode for an attached memory store.
|
|
47
|
+
#
|
|
48
|
+
# @param instructions [String, nil] Per-attachment guidance for the agent on how to use this store. Rendered into th
|
|
49
|
+
|
|
50
|
+
# @see Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceParam#type
|
|
51
|
+
module Type
|
|
52
|
+
extend Anthropic::Internal::Type::Enum
|
|
53
|
+
|
|
54
|
+
MEMORY_STORE = :memory_store
|
|
55
|
+
|
|
56
|
+
# @!method self.values
|
|
57
|
+
# @return [Array<Symbol>]
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Access mode for an attached memory store.
|
|
61
|
+
#
|
|
62
|
+
# @see Anthropic::Models::Beta::BetaManagedAgentsMemoryStoreResourceParam#access
|
|
63
|
+
module Access
|
|
64
|
+
extend Anthropic::Internal::Type::Enum
|
|
65
|
+
|
|
66
|
+
READ_WRITE = :read_write
|
|
67
|
+
READ_ONLY = :read_only
|
|
68
|
+
|
|
69
|
+
# @!method self.values
|
|
70
|
+
# @return [Array<Symbol>]
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
BetaManagedAgentsMemoryStoreResourceParam = Beta::BetaManagedAgentsMemoryStoreResourceParam
|
|
76
|
+
end
|
|
77
|
+
end
|
|
@@ -9,6 +9,8 @@ module Anthropic
|
|
|
9
9
|
module BetaManagedAgentsModel
|
|
10
10
|
extend Anthropic::Internal::Type::Union
|
|
11
11
|
|
|
12
|
+
variant const: -> { Anthropic::Models::Beta::BetaManagedAgentsModel::CLAUDE_OPUS_4_7 }
|
|
13
|
+
|
|
12
14
|
variant const: -> { Anthropic::Models::Beta::BetaManagedAgentsModel::CLAUDE_OPUS_4_6 }
|
|
13
15
|
|
|
14
16
|
variant const: -> { Anthropic::Models::Beta::BetaManagedAgentsModel::CLAUDE_SONNET_4_6 }
|
|
@@ -36,6 +38,9 @@ module Anthropic
|
|
|
36
38
|
|
|
37
39
|
# @!group
|
|
38
40
|
|
|
41
|
+
# Frontier intelligence for long-running agents and coding
|
|
42
|
+
CLAUDE_OPUS_4_7 = :"claude-opus-4-7"
|
|
43
|
+
|
|
39
44
|
# Most intelligent model for building agents and coding
|
|
40
45
|
CLAUDE_OPUS_4_6 = :"claude-opus-4-6"
|
|
41
46
|
|
|
@@ -41,7 +41,7 @@ module Anthropic
|
|
|
41
41
|
|
|
42
42
|
# @!attribute resources
|
|
43
43
|
#
|
|
44
|
-
# @return [Array<Anthropic::Models::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsFileResource>]
|
|
44
|
+
# @return [Array<Anthropic::Models::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsFileResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource>]
|
|
45
45
|
required :resources,
|
|
46
46
|
-> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::Sessions::BetaManagedAgentsSessionResource] }
|
|
47
47
|
|
|
@@ -104,7 +104,7 @@ module Anthropic
|
|
|
104
104
|
#
|
|
105
105
|
# @param metadata [Hash{Symbol=>String}]
|
|
106
106
|
#
|
|
107
|
-
# @param resources [Array<Anthropic::Models::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsFileResource>]
|
|
107
|
+
# @param resources [Array<Anthropic::Models::Beta::Sessions::BetaManagedAgentsGitHubRepositoryResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsFileResource, Anthropic::Models::Beta::Sessions::BetaManagedAgentsMemoryStoreResource>]
|
|
108
108
|
#
|
|
109
109
|
# @param stats [Anthropic::Models::Beta::BetaManagedAgentsSessionStats] Timing statistics for a session.
|
|
110
110
|
#
|
|
@@ -17,13 +17,21 @@ module Anthropic
|
|
|
17
17
|
# @return [Anthropic::Models::Beta::BetaJSONOutputFormat, nil]
|
|
18
18
|
optional :format_, -> { Anthropic::Beta::BetaJSONOutputFormat }, api_name: :format, nil?: true
|
|
19
19
|
|
|
20
|
-
# @!
|
|
20
|
+
# @!attribute task_budget
|
|
21
|
+
# User-configurable total token budget across contexts.
|
|
22
|
+
#
|
|
23
|
+
# @return [Anthropic::Models::Beta::BetaTokenTaskBudget, nil]
|
|
24
|
+
optional :task_budget, -> { Anthropic::Beta::BetaTokenTaskBudget }, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!method initialize(effort: nil, format_: nil, task_budget: nil)
|
|
21
27
|
# Some parameter documentations has been truncated, see
|
|
22
28
|
# {Anthropic::Models::Beta::BetaOutputConfig} for more details.
|
|
23
29
|
#
|
|
24
30
|
# @param effort [Symbol, Anthropic::Models::Beta::BetaOutputConfig::Effort, nil] All possible effort levels.
|
|
25
31
|
#
|
|
26
32
|
# @param format_ [Anthropic::Models::Beta::BetaJSONOutputFormat, nil] A schema to specify Claude's output format in responses. See [structured outputs
|
|
33
|
+
#
|
|
34
|
+
# @param task_budget [Anthropic::Models::Beta::BetaTokenTaskBudget, nil] User-configurable total token budget across contexts.
|
|
27
35
|
|
|
28
36
|
# All possible effort levels.
|
|
29
37
|
#
|
|
@@ -34,6 +42,7 @@ module Anthropic
|
|
|
34
42
|
LOW = :low
|
|
35
43
|
MEDIUM = :medium
|
|
36
44
|
HIGH = :high
|
|
45
|
+
XHIGH = :xhigh
|
|
37
46
|
MAX = :max
|
|
38
47
|
|
|
39
48
|
# @!method self.values
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaTokenTaskBudget < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute total
|
|
8
|
+
# Total token budget across all contexts in the session.
|
|
9
|
+
#
|
|
10
|
+
# @return [Integer]
|
|
11
|
+
required :total, Integer
|
|
12
|
+
|
|
13
|
+
# @!attribute type
|
|
14
|
+
# The budget type. Currently only 'tokens' is supported.
|
|
15
|
+
#
|
|
16
|
+
# @return [Symbol, :tokens]
|
|
17
|
+
required :type, const: :tokens
|
|
18
|
+
|
|
19
|
+
# @!attribute remaining
|
|
20
|
+
# Remaining tokens in the budget. Use this to track usage across contexts when
|
|
21
|
+
# implementing compaction client-side. Defaults to total if not provided.
|
|
22
|
+
#
|
|
23
|
+
# @return [Integer, nil]
|
|
24
|
+
optional :remaining, Integer, nil?: true
|
|
25
|
+
|
|
26
|
+
# @!method initialize(total:, remaining: nil, type: :tokens)
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Anthropic::Models::Beta::BetaTokenTaskBudget} for more details.
|
|
29
|
+
#
|
|
30
|
+
# User-configurable total token budget across contexts.
|
|
31
|
+
#
|
|
32
|
+
# @param total [Integer] Total token budget across all contexts in the session.
|
|
33
|
+
#
|
|
34
|
+
# @param remaining [Integer, nil] Remaining tokens in the budget. Use this to track usage across contexts when imp
|
|
35
|
+
#
|
|
36
|
+
# @param type [Symbol, :tokens] The budget type. Currently only 'tokens' is supported.
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
BetaTokenTaskBudget = Beta::BetaTokenTaskBudget
|
|
41
|
+
end
|
|
42
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::UserProfiles#create
|
|
7
|
+
class BetaUserProfile < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Unique identifier for this user profile, prefixed `uprof_`.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute created_at
|
|
15
|
+
# A timestamp in RFC 3339 format
|
|
16
|
+
#
|
|
17
|
+
# @return [Time]
|
|
18
|
+
required :created_at, Time
|
|
19
|
+
|
|
20
|
+
# @!attribute metadata
|
|
21
|
+
# Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up
|
|
22
|
+
# to 512 chars.
|
|
23
|
+
#
|
|
24
|
+
# @return [Hash{Symbol=>String}]
|
|
25
|
+
required :metadata, Anthropic::Internal::Type::HashOf[String]
|
|
26
|
+
|
|
27
|
+
# @!attribute trust_grants
|
|
28
|
+
# Trust grants for this profile, keyed by grant name. Key omitted when no grant is
|
|
29
|
+
# active or in flight.
|
|
30
|
+
#
|
|
31
|
+
# @return [Hash{Symbol=>Anthropic::Models::Beta::BetaUserProfileTrustGrant}]
|
|
32
|
+
required :trust_grants,
|
|
33
|
+
-> { Anthropic::Internal::Type::HashOf[Anthropic::Beta::BetaUserProfileTrustGrant] }
|
|
34
|
+
|
|
35
|
+
# @!attribute type
|
|
36
|
+
# Object type. Always `user_profile`.
|
|
37
|
+
#
|
|
38
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaUserProfile::Type]
|
|
39
|
+
required :type, enum: -> { Anthropic::Beta::BetaUserProfile::Type }
|
|
40
|
+
|
|
41
|
+
# @!attribute updated_at
|
|
42
|
+
# A timestamp in RFC 3339 format
|
|
43
|
+
#
|
|
44
|
+
# @return [Time]
|
|
45
|
+
required :updated_at, Time
|
|
46
|
+
|
|
47
|
+
# @!attribute external_id
|
|
48
|
+
# Platform's own identifier for this user. Not enforced unique.
|
|
49
|
+
#
|
|
50
|
+
# @return [String, nil]
|
|
51
|
+
optional :external_id, String, nil?: true
|
|
52
|
+
|
|
53
|
+
# @!method initialize(id:, created_at:, metadata:, trust_grants:, type:, updated_at:, external_id: nil)
|
|
54
|
+
# Some parameter documentations has been truncated, see
|
|
55
|
+
# {Anthropic::Models::Beta::BetaUserProfile} for more details.
|
|
56
|
+
#
|
|
57
|
+
# @param id [String] Unique identifier for this user profile, prefixed `uprof_`.
|
|
58
|
+
#
|
|
59
|
+
# @param created_at [Time] A timestamp in RFC 3339 format
|
|
60
|
+
#
|
|
61
|
+
# @param metadata [Hash{Symbol=>String}] Arbitrary key-value metadata. Maximum 16 pairs, keys up to 64 chars, values up t
|
|
62
|
+
#
|
|
63
|
+
# @param trust_grants [Hash{Symbol=>Anthropic::Models::Beta::BetaUserProfileTrustGrant}] Trust grants for this profile, keyed by grant name. Key omitted when no grant is
|
|
64
|
+
#
|
|
65
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaUserProfile::Type] Object type. Always `user_profile`.
|
|
66
|
+
#
|
|
67
|
+
# @param updated_at [Time] A timestamp in RFC 3339 format
|
|
68
|
+
#
|
|
69
|
+
# @param external_id [String, nil] Platform's own identifier for this user. Not enforced unique.
|
|
70
|
+
|
|
71
|
+
# Object type. Always `user_profile`.
|
|
72
|
+
#
|
|
73
|
+
# @see Anthropic::Models::Beta::BetaUserProfile#type
|
|
74
|
+
module Type
|
|
75
|
+
extend Anthropic::Internal::Type::Enum
|
|
76
|
+
|
|
77
|
+
USER_PROFILE = :user_profile
|
|
78
|
+
|
|
79
|
+
# @!method self.values
|
|
80
|
+
# @return [Array<Symbol>]
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
BetaUserProfile = Beta::BetaUserProfile
|
|
86
|
+
end
|
|
87
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::UserProfiles#create_enrollment_url
|
|
7
|
+
class BetaUserProfileEnrollmentURL < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute expires_at
|
|
9
|
+
# A timestamp in RFC 3339 format
|
|
10
|
+
#
|
|
11
|
+
# @return [Time]
|
|
12
|
+
required :expires_at, Time
|
|
13
|
+
|
|
14
|
+
# @!attribute type
|
|
15
|
+
# Object type. Always `enrollment_url`.
|
|
16
|
+
#
|
|
17
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaUserProfileEnrollmentURL::Type]
|
|
18
|
+
required :type, enum: -> { Anthropic::Beta::BetaUserProfileEnrollmentURL::Type }
|
|
19
|
+
|
|
20
|
+
# @!attribute url
|
|
21
|
+
# Enrollment URL to send to the end user. Valid until `expires_at`.
|
|
22
|
+
#
|
|
23
|
+
# @return [String]
|
|
24
|
+
required :url, String
|
|
25
|
+
|
|
26
|
+
# @!method initialize(expires_at:, type:, url:)
|
|
27
|
+
# @param expires_at [Time] A timestamp in RFC 3339 format
|
|
28
|
+
#
|
|
29
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaUserProfileEnrollmentURL::Type] Object type. Always `enrollment_url`.
|
|
30
|
+
#
|
|
31
|
+
# @param url [String] Enrollment URL to send to the end user. Valid until `expires_at`.
|
|
32
|
+
|
|
33
|
+
# Object type. Always `enrollment_url`.
|
|
34
|
+
#
|
|
35
|
+
# @see Anthropic::Models::Beta::BetaUserProfileEnrollmentURL#type
|
|
36
|
+
module Type
|
|
37
|
+
extend Anthropic::Internal::Type::Enum
|
|
38
|
+
|
|
39
|
+
ENROLLMENT_URL = :enrollment_url
|
|
40
|
+
|
|
41
|
+
# @!method self.values
|
|
42
|
+
# @return [Array<Symbol>]
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
BetaUserProfileEnrollmentURL = Beta::BetaUserProfileEnrollmentURL
|
|
48
|
+
end
|
|
49
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaUserProfileTrustGrant < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute status
|
|
8
|
+
# Status of the trust grant.
|
|
9
|
+
#
|
|
10
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaUserProfileTrustGrant::Status]
|
|
11
|
+
required :status, enum: -> { Anthropic::Beta::BetaUserProfileTrustGrant::Status }
|
|
12
|
+
|
|
13
|
+
# @!method initialize(status:)
|
|
14
|
+
# @param status [Symbol, Anthropic::Models::Beta::BetaUserProfileTrustGrant::Status] Status of the trust grant.
|
|
15
|
+
|
|
16
|
+
# Status of the trust grant.
|
|
17
|
+
#
|
|
18
|
+
# @see Anthropic::Models::Beta::BetaUserProfileTrustGrant#status
|
|
19
|
+
module Status
|
|
20
|
+
extend Anthropic::Internal::Type::Enum
|
|
21
|
+
|
|
22
|
+
ACTIVE = :active
|
|
23
|
+
PENDING = :pending
|
|
24
|
+
REJECTED = :rejected
|
|
25
|
+
|
|
26
|
+
# @!method self.values
|
|
27
|
+
# @return [Array<Symbol>]
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
BetaUserProfileTrustGrant = Beta::BetaUserProfileTrustGrant
|
|
33
|
+
end
|
|
34
|
+
end
|