anthropic 1.55.0 → 1.56.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 +21 -0
- data/README.md +1 -1
- data/lib/anthropic/google_cloud.rb +6 -0
- data/lib/anthropic/helpers/google_cloud/client.rb +275 -0
- data/lib/anthropic/helpers/sessions/event_accumulator.rb +147 -0
- data/lib/anthropic/helpers/streaming/events.rb +4 -2
- data/lib/anthropic/helpers/streaming/message_stream.rb +27 -1
- data/lib/anthropic/models/anthropic_beta.rb +3 -0
- data/lib/anthropic/models/beta/beta_dream.rb +131 -0
- data/lib/anthropic/models/beta/beta_dream_error.rb +27 -0
- data/lib/anthropic/models/beta/beta_dream_input.rb +25 -0
- data/lib/anthropic/models/beta/beta_dream_memory_store_input.rb +37 -0
- data/lib/anthropic/models/beta/beta_dream_memory_store_output.rb +37 -0
- data/lib/anthropic/models/beta/beta_dream_model_config.rb +51 -0
- data/lib/anthropic/models/beta/beta_dream_model_config_param.rb +50 -0
- data/lib/anthropic/models/beta/beta_dream_output.rb +37 -0
- data/lib/anthropic/models/beta/beta_dream_sessions_input.rb +37 -0
- data/lib/anthropic/models/beta/beta_dream_status.rb +23 -0
- data/lib/anthropic/models/beta/beta_dream_usage.rb +46 -0
- data/lib/anthropic/models/beta/beta_fallback_param.rb +12 -5
- data/lib/anthropic/models/beta/beta_managed_agents_custom_tool_params.rb +1 -1
- data/lib/anthropic/models/beta/beta_tunnel.rb +67 -0
- data/lib/anthropic/models/beta/beta_tunnel_token.rb +42 -0
- data/lib/anthropic/models/beta/beta_usage.rb +7 -3
- data/lib/anthropic/models/beta/dream_archive_params.rb +31 -0
- data/lib/anthropic/models/beta/dream_cancel_params.rb +31 -0
- data/lib/anthropic/models/beta/dream_create_params.rb +59 -0
- data/lib/anthropic/models/beta/dream_list_params.rb +78 -0
- data/lib/anthropic/models/beta/dream_retrieve_params.rb +31 -0
- data/lib/anthropic/models/beta/message_count_tokens_params.rb +7 -5
- data/lib/anthropic/models/beta/message_create_params.rb +7 -5
- data/lib/anthropic/models/beta/messages/batch_create_params.rb +7 -5
- data/lib/anthropic/models/beta/tunnel_archive_params.rb +31 -0
- data/lib/anthropic/models/beta/tunnel_create_params.rb +32 -0
- data/lib/anthropic/models/beta/tunnel_list_params.rb +48 -0
- data/lib/anthropic/models/beta/tunnel_retrieve_params.rb +31 -0
- data/lib/anthropic/models/beta/tunnel_reveal_token_params.rb +31 -0
- data/lib/anthropic/models/beta/tunnel_rotate_token_params.rb +39 -0
- data/lib/anthropic/models/beta/tunnels/beta_tunnel_certificate.rb +70 -0
- data/lib/anthropic/models/beta/tunnels/certificate_archive_params.rb +40 -0
- data/lib/anthropic/models/beta/tunnels/certificate_create_params.rb +45 -0
- data/lib/anthropic/models/beta/tunnels/certificate_list_params.rb +60 -0
- data/lib/anthropic/models/beta/tunnels/certificate_retrieve_params.rb +40 -0
- data/lib/anthropic/resources/beta/dreams.rb +159 -0
- data/lib/anthropic/resources/beta/messages.rb +3 -3
- data/lib/anthropic/resources/beta/tunnels/certificates.rb +172 -0
- data/lib/anthropic/resources/beta/tunnels.rb +222 -0
- data/lib/anthropic/resources/beta.rb +8 -0
- data/lib/anthropic/version.rb +1 -1
- data/lib/anthropic.rb +35 -0
- data/rbi/anthropic/google_cloud.rbi +6 -0
- data/rbi/anthropic/helpers/google_cloud/client.rbi +87 -0
- data/rbi/anthropic/helpers/sessions/event_accumulator.rbi +56 -0
- data/rbi/anthropic/models/anthropic_beta.rbi +2 -0
- data/rbi/anthropic/models/beta/beta_dream.rbi +169 -0
- data/rbi/anthropic/models/beta/beta_dream_error.rbi +31 -0
- data/rbi/anthropic/models/beta/beta_dream_input.rbi +28 -0
- data/rbi/anthropic/models/beta/beta_dream_memory_store_input.rbi +74 -0
- data/rbi/anthropic/models/beta/beta_dream_memory_store_output.rbi +74 -0
- data/rbi/anthropic/models/beta/beta_dream_model_config.rbi +105 -0
- data/rbi/anthropic/models/beta/beta_dream_model_config_param.rbi +103 -0
- data/rbi/anthropic/models/beta/beta_dream_output.rbi +70 -0
- data/rbi/anthropic/models/beta/beta_dream_sessions_input.rbi +72 -0
- data/rbi/anthropic/models/beta/beta_dream_status.rbi +36 -0
- data/rbi/anthropic/models/beta/beta_dream_usage.rbi +66 -0
- data/rbi/anthropic/models/beta/beta_fallback_param.rbi +13 -4
- data/rbi/anthropic/models/beta/beta_managed_agents_custom_tool_params.rbi +2 -2
- data/rbi/anthropic/models/beta/beta_tunnel.rbi +84 -0
- data/rbi/anthropic/models/beta/beta_tunnel_token.rbi +53 -0
- data/rbi/anthropic/models/beta/beta_usage.rbi +9 -3
- data/rbi/anthropic/models/beta/dream_archive_params.rbi +68 -0
- data/rbi/anthropic/models/beta/dream_cancel_params.rbi +68 -0
- data/rbi/anthropic/models/beta/dream_create_params.rbi +124 -0
- data/rbi/anthropic/models/beta/dream_list_params.rbi +142 -0
- data/rbi/anthropic/models/beta/dream_retrieve_params.rbi +68 -0
- data/rbi/anthropic/models/beta/message_count_tokens_params.rbi +9 -6
- data/rbi/anthropic/models/beta/message_create_params.rbi +9 -6
- data/rbi/anthropic/models/beta/messages/batch_create_params.rbi +9 -6
- data/rbi/anthropic/models/beta/tunnel_archive_params.rbi +68 -0
- data/rbi/anthropic/models/beta/tunnel_create_params.rbi +70 -0
- data/rbi/anthropic/models/beta/tunnel_list_params.rbi +95 -0
- data/rbi/anthropic/models/beta/tunnel_retrieve_params.rbi +68 -0
- data/rbi/anthropic/models/beta/tunnel_reveal_token_params.rbi +68 -0
- data/rbi/anthropic/models/beta/tunnel_rotate_token_params.rbi +76 -0
- data/rbi/anthropic/models/beta/tunnels/beta_tunnel_certificate.rbi +91 -0
- data/rbi/anthropic/models/beta/tunnels/certificate_archive_params.rbi +77 -0
- data/rbi/anthropic/models/beta/tunnels/certificate_create_params.rbi +81 -0
- data/rbi/anthropic/models/beta/tunnels/certificate_list_params.rbi +104 -0
- data/rbi/anthropic/models/beta/tunnels/certificate_retrieve_params.rbi +77 -0
- data/rbi/anthropic/resources/beta/dreams.rbi +130 -0
- data/rbi/anthropic/resources/beta/messages.rbi +9 -6
- data/rbi/anthropic/resources/beta/tunnels/certificates.rbi +140 -0
- data/rbi/anthropic/resources/beta/tunnels.rbi +173 -0
- data/rbi/anthropic/resources/beta.rbi +6 -0
- data/sig/anthropic/google_cloud.rbs +5 -0
- data/sig/anthropic/helpers/google_cloud/client.rbs +52 -0
- data/sig/anthropic/helpers/sessions/event_accumulator.rbs +30 -0
- data/sig/anthropic/models/anthropic_beta.rbs +2 -0
- data/sig/anthropic/models/beta/beta_dream.rbs +94 -0
- data/sig/anthropic/models/beta/beta_dream_error.rbs +19 -0
- data/sig/anthropic/models/beta/beta_dream_input.rbs +17 -0
- data/sig/anthropic/models/beta/beta_dream_memory_store_input.rbs +39 -0
- data/sig/anthropic/models/beta/beta_dream_memory_store_output.rbs +39 -0
- data/sig/anthropic/models/beta/beta_dream_model_config.rbs +44 -0
- data/sig/anthropic/models/beta/beta_dream_model_config_param.rbs +40 -0
- data/sig/anthropic/models/beta/beta_dream_output.rbs +39 -0
- data/sig/anthropic/models/beta/beta_dream_sessions_input.rbs +39 -0
- data/sig/anthropic/models/beta/beta_dream_status.rbs +22 -0
- data/sig/anthropic/models/beta/beta_dream_usage.rbs +39 -0
- data/sig/anthropic/models/beta/beta_tunnel.rbs +49 -0
- data/sig/anthropic/models/beta/beta_tunnel_token.rbs +30 -0
- data/sig/anthropic/models/beta/dream_archive_params.rbs +34 -0
- data/sig/anthropic/models/beta/dream_cancel_params.rbs +34 -0
- data/sig/anthropic/models/beta/dream_create_params.rbs +55 -0
- data/sig/anthropic/models/beta/dream_list_params.rbs +76 -0
- data/sig/anthropic/models/beta/dream_retrieve_params.rbs +34 -0
- data/sig/anthropic/models/beta/tunnel_archive_params.rbs +34 -0
- data/sig/anthropic/models/beta/tunnel_create_params.rbs +37 -0
- data/sig/anthropic/models/beta/tunnel_list_params.rbs +53 -0
- data/sig/anthropic/models/beta/tunnel_retrieve_params.rbs +34 -0
- data/sig/anthropic/models/beta/tunnel_reveal_token_params.rbs +34 -0
- data/sig/anthropic/models/beta/tunnel_rotate_token_params.rbs +42 -0
- data/sig/anthropic/models/beta/tunnels/beta_tunnel_certificate.rbs +54 -0
- data/sig/anthropic/models/beta/tunnels/certificate_archive_params.rbs +44 -0
- data/sig/anthropic/models/beta/tunnels/certificate_create_params.rbs +44 -0
- data/sig/anthropic/models/beta/tunnels/certificate_list_params.rbs +60 -0
- data/sig/anthropic/models/beta/tunnels/certificate_retrieve_params.rbs +44 -0
- data/sig/anthropic/resources/beta/dreams.rbs +46 -0
- data/sig/anthropic/resources/beta/tunnels/certificates.rbs +41 -0
- data/sig/anthropic/resources/beta/tunnels.rbs +50 -0
- data/sig/anthropic/resources/beta.rbs +4 -0
- metadata +107 -2
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Dreams#create
|
|
7
|
+
class BetaDream < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute archived_at
|
|
14
|
+
# A timestamp in RFC 3339 format
|
|
15
|
+
#
|
|
16
|
+
# @return [Time, nil]
|
|
17
|
+
required :archived_at, Time, nil?: true
|
|
18
|
+
|
|
19
|
+
# @!attribute created_at
|
|
20
|
+
# A timestamp in RFC 3339 format
|
|
21
|
+
#
|
|
22
|
+
# @return [Time]
|
|
23
|
+
required :created_at, Time
|
|
24
|
+
|
|
25
|
+
# @!attribute ended_at
|
|
26
|
+
# A timestamp in RFC 3339 format
|
|
27
|
+
#
|
|
28
|
+
# @return [Time, nil]
|
|
29
|
+
required :ended_at, Time, nil?: true
|
|
30
|
+
|
|
31
|
+
# @!attribute error
|
|
32
|
+
# Failure detail for a Dream whose `status` is `failed`.
|
|
33
|
+
#
|
|
34
|
+
# @return [Anthropic::Models::Beta::BetaDreamError, nil]
|
|
35
|
+
required :error, -> { Anthropic::Beta::BetaDreamError }, nil?: true
|
|
36
|
+
|
|
37
|
+
# @!attribute inputs
|
|
38
|
+
#
|
|
39
|
+
# @return [Array<Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput>]
|
|
40
|
+
required :inputs, -> { Anthropic::Internal::Type::ArrayOf[union: Anthropic::Beta::BetaDreamInput] }
|
|
41
|
+
|
|
42
|
+
# @!attribute instructions
|
|
43
|
+
#
|
|
44
|
+
# @return [String, nil]
|
|
45
|
+
required :instructions, String, nil?: true
|
|
46
|
+
|
|
47
|
+
# @!attribute model
|
|
48
|
+
# Model identifier and configuration applied to every pipeline stage. Same wire
|
|
49
|
+
# shape as the Agents API ModelConfig.
|
|
50
|
+
#
|
|
51
|
+
# @return [Anthropic::Models::Beta::BetaDreamModelConfig]
|
|
52
|
+
required :model, -> { Anthropic::Beta::BetaDreamModelConfig }
|
|
53
|
+
|
|
54
|
+
# @!attribute outputs
|
|
55
|
+
#
|
|
56
|
+
# @return [Array<Anthropic::Models::Beta::BetaDreamOutput>]
|
|
57
|
+
required :outputs, -> { Anthropic::Internal::Type::ArrayOf[Anthropic::Beta::BetaDreamOutput] }
|
|
58
|
+
|
|
59
|
+
# @!attribute session_id
|
|
60
|
+
#
|
|
61
|
+
# @return [String, nil]
|
|
62
|
+
required :session_id, String, nil?: true
|
|
63
|
+
|
|
64
|
+
# @!attribute status
|
|
65
|
+
# Lifecycle status of a Dream.
|
|
66
|
+
#
|
|
67
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaDreamStatus]
|
|
68
|
+
required :status, enum: -> { Anthropic::Beta::BetaDreamStatus }
|
|
69
|
+
|
|
70
|
+
# @!attribute type
|
|
71
|
+
#
|
|
72
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaDream::Type]
|
|
73
|
+
required :type, enum: -> { Anthropic::Beta::BetaDream::Type }
|
|
74
|
+
|
|
75
|
+
# @!attribute usage
|
|
76
|
+
# Cumulative token usage for the dream across every pipeline stage.
|
|
77
|
+
#
|
|
78
|
+
# @return [Anthropic::Models::Beta::BetaDreamUsage]
|
|
79
|
+
required :usage, -> { Anthropic::Beta::BetaDreamUsage }
|
|
80
|
+
|
|
81
|
+
# @!method initialize(id:, archived_at:, created_at:, ended_at:, error:, inputs:, instructions:, model:, outputs:, session_id:, status:, type:, usage:)
|
|
82
|
+
# Some parameter documentations has been truncated, see
|
|
83
|
+
# {Anthropic::Models::Beta::BetaDream} for more details.
|
|
84
|
+
#
|
|
85
|
+
# An asynchronous memory-consolidation job that reads a memory store plus a set of
|
|
86
|
+
# session transcripts and writes consolidated memories into a new output memory
|
|
87
|
+
# store. The Dreams API is in research preview: the request and response shapes
|
|
88
|
+
# are volatile and may change without the deprecation period that applies to
|
|
89
|
+
# generally-available endpoints.
|
|
90
|
+
#
|
|
91
|
+
# @param id [String]
|
|
92
|
+
#
|
|
93
|
+
# @param archived_at [Time, nil] A timestamp in RFC 3339 format
|
|
94
|
+
#
|
|
95
|
+
# @param created_at [Time] A timestamp in RFC 3339 format
|
|
96
|
+
#
|
|
97
|
+
# @param ended_at [Time, nil] A timestamp in RFC 3339 format
|
|
98
|
+
#
|
|
99
|
+
# @param error [Anthropic::Models::Beta::BetaDreamError, nil] Failure detail for a Dream whose `status` is `failed`.
|
|
100
|
+
#
|
|
101
|
+
# @param inputs [Array<Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput>]
|
|
102
|
+
#
|
|
103
|
+
# @param instructions [String, nil]
|
|
104
|
+
#
|
|
105
|
+
# @param model [Anthropic::Models::Beta::BetaDreamModelConfig] Model identifier and configuration applied to every pipeline stage. Same wire sh
|
|
106
|
+
#
|
|
107
|
+
# @param outputs [Array<Anthropic::Models::Beta::BetaDreamOutput>]
|
|
108
|
+
#
|
|
109
|
+
# @param session_id [String, nil]
|
|
110
|
+
#
|
|
111
|
+
# @param status [Symbol, Anthropic::Models::Beta::BetaDreamStatus] Lifecycle status of a Dream.
|
|
112
|
+
#
|
|
113
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaDream::Type]
|
|
114
|
+
#
|
|
115
|
+
# @param usage [Anthropic::Models::Beta::BetaDreamUsage] Cumulative token usage for the dream across every pipeline stage.
|
|
116
|
+
|
|
117
|
+
# @see Anthropic::Models::Beta::BetaDream#type
|
|
118
|
+
module Type
|
|
119
|
+
extend Anthropic::Internal::Type::Enum
|
|
120
|
+
|
|
121
|
+
DREAM = :dream
|
|
122
|
+
|
|
123
|
+
# @!method self.values
|
|
124
|
+
# @return [Array<Symbol>]
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
BetaDream = Beta::BetaDream
|
|
130
|
+
end
|
|
131
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaDreamError < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute message
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :message, String
|
|
11
|
+
|
|
12
|
+
# @!attribute type
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :type, String
|
|
16
|
+
|
|
17
|
+
# @!method initialize(message:, type:)
|
|
18
|
+
# Failure detail for a Dream whose `status` is `failed`.
|
|
19
|
+
#
|
|
20
|
+
# @param message [String]
|
|
21
|
+
# @param type [String]
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
BetaDreamError = Beta::BetaDreamError
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# An input memory store the dream reads from. The dream never mutates this store.
|
|
7
|
+
module BetaDreamInput
|
|
8
|
+
extend Anthropic::Internal::Type::Union
|
|
9
|
+
|
|
10
|
+
discriminator :type
|
|
11
|
+
|
|
12
|
+
# An input memory store the dream reads from. The dream never mutates this store.
|
|
13
|
+
variant :memory_store, -> { Anthropic::Beta::BetaDreamMemoryStoreInput }
|
|
14
|
+
|
|
15
|
+
# Input session transcripts the dream reads.
|
|
16
|
+
variant :sessions, -> { Anthropic::Beta::BetaDreamSessionsInput }
|
|
17
|
+
|
|
18
|
+
# @!method self.variants
|
|
19
|
+
# @return [Array(Anthropic::Models::Beta::BetaDreamMemoryStoreInput, Anthropic::Models::Beta::BetaDreamSessionsInput)]
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
BetaDreamInput = Beta::BetaDreamInput
|
|
24
|
+
end
|
|
25
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaDreamMemoryStoreInput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute memory_store_id
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :memory_store_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute type
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaDreamMemoryStoreInput::Type]
|
|
15
|
+
required :type, enum: -> { Anthropic::Beta::BetaDreamMemoryStoreInput::Type }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(memory_store_id:, type:)
|
|
18
|
+
# An input memory store the dream reads from. The dream never mutates this store.
|
|
19
|
+
#
|
|
20
|
+
# @param memory_store_id [String]
|
|
21
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaDreamMemoryStoreInput::Type]
|
|
22
|
+
|
|
23
|
+
# @see Anthropic::Models::Beta::BetaDreamMemoryStoreInput#type
|
|
24
|
+
module Type
|
|
25
|
+
extend Anthropic::Internal::Type::Enum
|
|
26
|
+
|
|
27
|
+
MEMORY_STORE = :memory_store
|
|
28
|
+
|
|
29
|
+
# @!method self.values
|
|
30
|
+
# @return [Array<Symbol>]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
BetaDreamMemoryStoreInput = Beta::BetaDreamMemoryStoreInput
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaDreamMemoryStoreOutput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute memory_store_id
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :memory_store_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute type
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaDreamMemoryStoreOutput::Type]
|
|
15
|
+
required :type, enum: -> { Anthropic::Beta::BetaDreamMemoryStoreOutput::Type }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(memory_store_id:, type:)
|
|
18
|
+
# An output memory store the dream writes consolidated memories into.
|
|
19
|
+
#
|
|
20
|
+
# @param memory_store_id [String]
|
|
21
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaDreamMemoryStoreOutput::Type]
|
|
22
|
+
|
|
23
|
+
# @see Anthropic::Models::Beta::BetaDreamMemoryStoreOutput#type
|
|
24
|
+
module Type
|
|
25
|
+
extend Anthropic::Internal::Type::Enum
|
|
26
|
+
|
|
27
|
+
MEMORY_STORE = :memory_store
|
|
28
|
+
|
|
29
|
+
# @!method self.values
|
|
30
|
+
# @return [Array<Symbol>]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
BetaDreamMemoryStoreOutput = Beta::BetaDreamMemoryStoreOutput
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaDreamModelConfig < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# Model identifier, e.g. "claude-opus-4-7". 1-256 characters.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute speed
|
|
14
|
+
# Inference speed mode. `fast` provides significantly faster output token
|
|
15
|
+
# generation at premium pricing. Not all models support `fast`; invalid
|
|
16
|
+
# combinations are rejected at create time.
|
|
17
|
+
#
|
|
18
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaDreamModelConfig::Speed, nil]
|
|
19
|
+
optional :speed, enum: -> { Anthropic::Beta::BetaDreamModelConfig::Speed }
|
|
20
|
+
|
|
21
|
+
# @!method initialize(id:, speed: nil)
|
|
22
|
+
# Some parameter documentations has been truncated, see
|
|
23
|
+
# {Anthropic::Models::Beta::BetaDreamModelConfig} for more details.
|
|
24
|
+
#
|
|
25
|
+
# Model identifier and configuration applied to every pipeline stage. Same wire
|
|
26
|
+
# shape as the Agents API ModelConfig.
|
|
27
|
+
#
|
|
28
|
+
# @param id [String] Model identifier, e.g. "claude-opus-4-7". 1-256 characters.
|
|
29
|
+
#
|
|
30
|
+
# @param speed [Symbol, Anthropic::Models::Beta::BetaDreamModelConfig::Speed] Inference speed mode. `fast` provides significantly faster output token generati
|
|
31
|
+
|
|
32
|
+
# Inference speed mode. `fast` provides significantly faster output token
|
|
33
|
+
# generation at premium pricing. Not all models support `fast`; invalid
|
|
34
|
+
# combinations are rejected at create time.
|
|
35
|
+
#
|
|
36
|
+
# @see Anthropic::Models::Beta::BetaDreamModelConfig#speed
|
|
37
|
+
module Speed
|
|
38
|
+
extend Anthropic::Internal::Type::Enum
|
|
39
|
+
|
|
40
|
+
STANDARD = :standard
|
|
41
|
+
FAST = :fast
|
|
42
|
+
|
|
43
|
+
# @!method self.values
|
|
44
|
+
# @return [Array<Symbol>]
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
BetaDreamModelConfig = Beta::BetaDreamModelConfig
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaDreamModelConfigParam < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute id
|
|
8
|
+
# Model identifier, e.g. "claude-opus-4-7". 1-256 characters.
|
|
9
|
+
#
|
|
10
|
+
# @return [String]
|
|
11
|
+
required :id, String
|
|
12
|
+
|
|
13
|
+
# @!attribute speed
|
|
14
|
+
# Inference speed mode. `fast` provides significantly faster output token
|
|
15
|
+
# generation at premium pricing. Not all models support `fast`; invalid
|
|
16
|
+
# combinations are rejected at create time.
|
|
17
|
+
#
|
|
18
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaDreamModelConfigParam::Speed, nil]
|
|
19
|
+
optional :speed, enum: -> { Anthropic::Beta::BetaDreamModelConfigParam::Speed }, nil?: true
|
|
20
|
+
|
|
21
|
+
# @!method initialize(id:, speed: nil)
|
|
22
|
+
# Some parameter documentations has been truncated, see
|
|
23
|
+
# {Anthropic::Models::Beta::BetaDreamModelConfigParam} for more details.
|
|
24
|
+
#
|
|
25
|
+
# Model identifier and configuration applied to every pipeline stage.
|
|
26
|
+
#
|
|
27
|
+
# @param id [String] Model identifier, e.g. "claude-opus-4-7". 1-256 characters.
|
|
28
|
+
#
|
|
29
|
+
# @param speed [Symbol, Anthropic::Models::Beta::BetaDreamModelConfigParam::Speed, nil] Inference speed mode. `fast` provides significantly faster output token generati
|
|
30
|
+
|
|
31
|
+
# Inference speed mode. `fast` provides significantly faster output token
|
|
32
|
+
# generation at premium pricing. Not all models support `fast`; invalid
|
|
33
|
+
# combinations are rejected at create time.
|
|
34
|
+
#
|
|
35
|
+
# @see Anthropic::Models::Beta::BetaDreamModelConfigParam#speed
|
|
36
|
+
module Speed
|
|
37
|
+
extend Anthropic::Internal::Type::Enum
|
|
38
|
+
|
|
39
|
+
STANDARD = :standard
|
|
40
|
+
FAST = :fast
|
|
41
|
+
|
|
42
|
+
# @!method self.values
|
|
43
|
+
# @return [Array<Symbol>]
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
BetaDreamModelConfigParam = Beta::BetaDreamModelConfigParam
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaDreamOutput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute memory_store_id
|
|
8
|
+
#
|
|
9
|
+
# @return [String]
|
|
10
|
+
required :memory_store_id, String
|
|
11
|
+
|
|
12
|
+
# @!attribute type
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaDreamOutput::Type]
|
|
15
|
+
required :type, enum: -> { Anthropic::Beta::BetaDreamOutput::Type }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(memory_store_id:, type:)
|
|
18
|
+
# An output memory store the dream writes consolidated memories into.
|
|
19
|
+
#
|
|
20
|
+
# @param memory_store_id [String]
|
|
21
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaDreamOutput::Type]
|
|
22
|
+
|
|
23
|
+
# @see Anthropic::Models::Beta::BetaDreamOutput#type
|
|
24
|
+
module Type
|
|
25
|
+
extend Anthropic::Internal::Type::Enum
|
|
26
|
+
|
|
27
|
+
MEMORY_STORE = :memory_store
|
|
28
|
+
|
|
29
|
+
# @!method self.values
|
|
30
|
+
# @return [Array<Symbol>]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
BetaDreamOutput = Beta::BetaDreamOutput
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaDreamSessionsInput < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute session_ids
|
|
8
|
+
#
|
|
9
|
+
# @return [Array<String>]
|
|
10
|
+
required :session_ids, Anthropic::Internal::Type::ArrayOf[String]
|
|
11
|
+
|
|
12
|
+
# @!attribute type
|
|
13
|
+
#
|
|
14
|
+
# @return [Symbol, Anthropic::Models::Beta::BetaDreamSessionsInput::Type]
|
|
15
|
+
required :type, enum: -> { Anthropic::Beta::BetaDreamSessionsInput::Type }
|
|
16
|
+
|
|
17
|
+
# @!method initialize(session_ids:, type:)
|
|
18
|
+
# Input session transcripts the dream reads.
|
|
19
|
+
#
|
|
20
|
+
# @param session_ids [Array<String>]
|
|
21
|
+
# @param type [Symbol, Anthropic::Models::Beta::BetaDreamSessionsInput::Type]
|
|
22
|
+
|
|
23
|
+
# @see Anthropic::Models::Beta::BetaDreamSessionsInput#type
|
|
24
|
+
module Type
|
|
25
|
+
extend Anthropic::Internal::Type::Enum
|
|
26
|
+
|
|
27
|
+
SESSIONS = :sessions
|
|
28
|
+
|
|
29
|
+
# @!method self.values
|
|
30
|
+
# @return [Array<Symbol>]
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
BetaDreamSessionsInput = Beta::BetaDreamSessionsInput
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# Lifecycle status of a Dream.
|
|
7
|
+
module BetaDreamStatus
|
|
8
|
+
extend Anthropic::Internal::Type::Enum
|
|
9
|
+
|
|
10
|
+
PENDING = :pending
|
|
11
|
+
RUNNING = :running
|
|
12
|
+
COMPLETED = :completed
|
|
13
|
+
FAILED = :failed
|
|
14
|
+
CANCELED = :canceled
|
|
15
|
+
|
|
16
|
+
# @!method self.values
|
|
17
|
+
# @return [Array<Symbol>]
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
BetaDreamStatus = Beta::BetaDreamStatus
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
class BetaDreamUsage < Anthropic::Internal::Type::BaseModel
|
|
7
|
+
# @!attribute cache_creation_input_tokens
|
|
8
|
+
# Total tokens used to create prompt-cache entries (sum of all TTL tiers).
|
|
9
|
+
#
|
|
10
|
+
# @return [Integer]
|
|
11
|
+
required :cache_creation_input_tokens, Integer
|
|
12
|
+
|
|
13
|
+
# @!attribute cache_read_input_tokens
|
|
14
|
+
# Total tokens read from prompt cache.
|
|
15
|
+
#
|
|
16
|
+
# @return [Integer]
|
|
17
|
+
required :cache_read_input_tokens, Integer
|
|
18
|
+
|
|
19
|
+
# @!attribute input_tokens
|
|
20
|
+
# Total uncached input tokens consumed across every pipeline stage.
|
|
21
|
+
#
|
|
22
|
+
# @return [Integer]
|
|
23
|
+
required :input_tokens, Integer
|
|
24
|
+
|
|
25
|
+
# @!attribute output_tokens
|
|
26
|
+
# Total output tokens generated across every pipeline stage.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer]
|
|
29
|
+
required :output_tokens, Integer
|
|
30
|
+
|
|
31
|
+
# @!method initialize(cache_creation_input_tokens:, cache_read_input_tokens:, input_tokens:, output_tokens:)
|
|
32
|
+
# Cumulative token usage for the dream across every pipeline stage.
|
|
33
|
+
#
|
|
34
|
+
# @param cache_creation_input_tokens [Integer] Total tokens used to create prompt-cache entries (sum of all TTL tiers).
|
|
35
|
+
#
|
|
36
|
+
# @param cache_read_input_tokens [Integer] Total tokens read from prompt cache.
|
|
37
|
+
#
|
|
38
|
+
# @param input_tokens [Integer] Total uncached input tokens consumed across every pipeline stage.
|
|
39
|
+
#
|
|
40
|
+
# @param output_tokens [Integer] Total output tokens generated across every pipeline stage.
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
BetaDreamUsage = Beta::BetaDreamUsage
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -24,6 +24,9 @@ module Anthropic
|
|
|
24
24
|
optional :output_config, -> { Anthropic::Beta::BetaOutputConfig }, nil?: true
|
|
25
25
|
|
|
26
26
|
# @!attribute speed
|
|
27
|
+
# Inference speed mode. `fast` provides significantly faster output token
|
|
28
|
+
# generation at premium pricing. Not all models support `fast`; invalid
|
|
29
|
+
# combinations are rejected at create time.
|
|
27
30
|
#
|
|
28
31
|
# @return [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil]
|
|
29
32
|
optional :speed, enum: -> { Anthropic::Beta::BetaFallbackParam::Speed }, nil?: true
|
|
@@ -39,10 +42,10 @@ module Anthropic
|
|
|
39
42
|
#
|
|
40
43
|
# One entry in the `fallbacks` chain on a `/v1/messages` request.
|
|
41
44
|
#
|
|
42
|
-
# `model` is required. The
|
|
43
|
-
# `output_config`, and `speed`)
|
|
44
|
-
#
|
|
45
|
-
#
|
|
45
|
+
# `model` is required. The override fields (`max_tokens`, `thinking`,
|
|
46
|
+
# `output_config`, and `speed`) set the corresponding parameter for this attempt
|
|
47
|
+
# only and are validated as if the request were made to `model`. Any other key is
|
|
48
|
+
# rejected at parse time.
|
|
46
49
|
#
|
|
47
50
|
# @param model [Symbol, String, Anthropic::Models::Model] The model that will complete your prompt.
|
|
48
51
|
#
|
|
@@ -50,10 +53,14 @@ module Anthropic
|
|
|
50
53
|
#
|
|
51
54
|
# @param output_config [Anthropic::Models::Beta::BetaOutputConfig, nil]
|
|
52
55
|
#
|
|
53
|
-
# @param speed [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil]
|
|
56
|
+
# @param speed [Symbol, Anthropic::Models::Beta::BetaFallbackParam::Speed, nil] Inference speed mode. `fast` provides significantly faster output token generati
|
|
54
57
|
#
|
|
55
58
|
# @param thinking [Anthropic::Models::Beta::BetaThinkingConfigEnabled, Anthropic::Models::Beta::BetaThinkingConfigDisabled, Anthropic::Models::Beta::BetaThinkingConfigAdaptive, nil]
|
|
56
59
|
|
|
60
|
+
# Inference speed mode. `fast` provides significantly faster output token
|
|
61
|
+
# generation at premium pricing. Not all models support `fast`; invalid
|
|
62
|
+
# combinations are rejected at create time.
|
|
63
|
+
#
|
|
57
64
|
# @see Anthropic::Models::Beta::BetaFallbackParam#speed
|
|
58
65
|
module Speed
|
|
59
66
|
extend Anthropic::Internal::Type::Enum
|
|
@@ -6,7 +6,7 @@ module Anthropic
|
|
|
6
6
|
class BetaManagedAgentsCustomToolParams < Anthropic::Internal::Type::BaseModel
|
|
7
7
|
# @!attribute description
|
|
8
8
|
# Description of what the tool does, shown to the agent to help it decide when to
|
|
9
|
-
# use the tool. 1-
|
|
9
|
+
# use the tool. 1-4096 characters.
|
|
10
10
|
#
|
|
11
11
|
# @return [String]
|
|
12
12
|
required :description, String
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Tunnels#create
|
|
7
|
+
class BetaTunnel < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Unique identifier for the tunnel, prefixed with `tnl_`.
|
|
10
|
+
#
|
|
11
|
+
# @return [String]
|
|
12
|
+
required :id, String
|
|
13
|
+
|
|
14
|
+
# @!attribute archived_at
|
|
15
|
+
# A timestamp in RFC 3339 format
|
|
16
|
+
#
|
|
17
|
+
# @return [Time, nil]
|
|
18
|
+
required :archived_at, Time, nil?: true
|
|
19
|
+
|
|
20
|
+
# @!attribute created_at
|
|
21
|
+
# A timestamp in RFC 3339 format
|
|
22
|
+
#
|
|
23
|
+
# @return [Time]
|
|
24
|
+
required :created_at, Time
|
|
25
|
+
|
|
26
|
+
# @!attribute display_name
|
|
27
|
+
# Human-readable name for the tunnel (1-255 characters). Null if unset.
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
required :display_name, String, nil?: true
|
|
31
|
+
|
|
32
|
+
# @!attribute domain
|
|
33
|
+
# Anthropic-assigned hostname for the tunnel. MCP server URLs whose host is a
|
|
34
|
+
# subdomain of this value are routed through the tunnel. Globally unique and never
|
|
35
|
+
# reused, even after the tunnel is archived.
|
|
36
|
+
#
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :domain, String
|
|
39
|
+
|
|
40
|
+
# @!attribute type
|
|
41
|
+
#
|
|
42
|
+
# @return [Symbol, :tunnel]
|
|
43
|
+
required :type, const: :tunnel
|
|
44
|
+
|
|
45
|
+
# @!method initialize(id:, archived_at:, created_at:, display_name:, domain:, type: :tunnel)
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {Anthropic::Models::Beta::BetaTunnel} for more details.
|
|
48
|
+
#
|
|
49
|
+
# An MCP tunnel.
|
|
50
|
+
#
|
|
51
|
+
# @param id [String] Unique identifier for the tunnel, prefixed with `tnl_`.
|
|
52
|
+
#
|
|
53
|
+
# @param archived_at [Time, nil] A timestamp in RFC 3339 format
|
|
54
|
+
#
|
|
55
|
+
# @param created_at [Time] A timestamp in RFC 3339 format
|
|
56
|
+
#
|
|
57
|
+
# @param display_name [String, nil] Human-readable name for the tunnel (1-255 characters). Null if unset.
|
|
58
|
+
#
|
|
59
|
+
# @param domain [String] Anthropic-assigned hostname for the tunnel. MCP server URLs whose host is a subd
|
|
60
|
+
#
|
|
61
|
+
# @param type [Symbol, :tunnel]
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
BetaTunnel = Beta::BetaTunnel
|
|
66
|
+
end
|
|
67
|
+
end
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Anthropic
|
|
4
|
+
module Models
|
|
5
|
+
module Beta
|
|
6
|
+
# @see Anthropic::Resources::Beta::Tunnels#reveal_token
|
|
7
|
+
class BetaTunnelToken < Anthropic::Internal::Type::BaseModel
|
|
8
|
+
# @!attribute id
|
|
9
|
+
# Stable identifier for the current token value. Changes when the token is
|
|
10
|
+
# rotated.
|
|
11
|
+
#
|
|
12
|
+
# @return [String]
|
|
13
|
+
required :id, String
|
|
14
|
+
|
|
15
|
+
# @!attribute tunnel_token
|
|
16
|
+
# The connector token used to run the tunnel. Treat as a credential.
|
|
17
|
+
#
|
|
18
|
+
# @return [String]
|
|
19
|
+
required :tunnel_token, String
|
|
20
|
+
|
|
21
|
+
# @!attribute type
|
|
22
|
+
#
|
|
23
|
+
# @return [Symbol, :tunnel_token]
|
|
24
|
+
required :type, const: :tunnel_token
|
|
25
|
+
|
|
26
|
+
# @!method initialize(id:, tunnel_token:, type: :tunnel_token)
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {Anthropic::Models::Beta::BetaTunnelToken} for more details.
|
|
29
|
+
#
|
|
30
|
+
# A tunnel's connector token.
|
|
31
|
+
#
|
|
32
|
+
# @param id [String] Stable identifier for the current token value. Changes when the token is rotated
|
|
33
|
+
#
|
|
34
|
+
# @param tunnel_token [String] The connector token used to run the tunnel. Treat as a credential.
|
|
35
|
+
#
|
|
36
|
+
# @param type [Symbol, :tunnel_token]
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
BetaTunnelToken = Beta::BetaTunnelToken
|
|
41
|
+
end
|
|
42
|
+
end
|