aws-sdk-bedrockagentcore 1.0.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 +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-bedrockagentcore/client.rb +2384 -0
- data/lib/aws-sdk-bedrockagentcore/client_api.rb +1146 -0
- data/lib/aws-sdk-bedrockagentcore/customizations.rb +0 -0
- data/lib/aws-sdk-bedrockagentcore/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-bedrockagentcore/endpoint_provider.rb +50 -0
- data/lib/aws-sdk-bedrockagentcore/endpoints.rb +20 -0
- data/lib/aws-sdk-bedrockagentcore/errors.rb +240 -0
- data/lib/aws-sdk-bedrockagentcore/event_streams.rb +84 -0
- data/lib/aws-sdk-bedrockagentcore/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-bedrockagentcore/resource.rb +26 -0
- data/lib/aws-sdk-bedrockagentcore/types.rb +2482 -0
- data/lib/aws-sdk-bedrockagentcore/waiters.rb +15 -0
- data/lib/aws-sdk-bedrockagentcore.rb +63 -0
- data/sig/client.rbs +515 -0
- data/sig/errors.rbs +54 -0
- data/sig/resource.rbs +87 -0
- data/sig/types.rbs +701 -0
- data/sig/waiters.rbs +13 -0
- metadata +98 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
require 'aws-sdk-core/waiters'
|
11
|
+
|
12
|
+
module Aws::BedrockAgentCore
|
13
|
+
module Waiters
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
4
|
+
#
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
|
+
#
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
9
|
+
|
10
|
+
|
11
|
+
require 'aws-sdk-core'
|
12
|
+
require 'aws-sigv4'
|
13
|
+
|
14
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:bedrockagentcore)
|
15
|
+
|
16
|
+
# This module provides support for Amazon Bedrock AgentCore Data Plane Fronting Layer. This module is available in the
|
17
|
+
# `aws-sdk-bedrockagentcore` gem.
|
18
|
+
#
|
19
|
+
# # Client
|
20
|
+
#
|
21
|
+
# The {Client} class provides one method for each API operation. Operation
|
22
|
+
# methods each accept a hash of request parameters and return a response
|
23
|
+
# structure.
|
24
|
+
#
|
25
|
+
# bedrock_agent_core = Aws::BedrockAgentCore::Client.new
|
26
|
+
# resp = bedrock_agent_core.create_event(params)
|
27
|
+
#
|
28
|
+
# See {Client} for more information.
|
29
|
+
#
|
30
|
+
# # Errors
|
31
|
+
#
|
32
|
+
# Errors returned from Amazon Bedrock AgentCore Data Plane Fronting Layer are defined in the
|
33
|
+
# {Errors} module and all extend {Errors::ServiceError}.
|
34
|
+
#
|
35
|
+
# begin
|
36
|
+
# # do stuff
|
37
|
+
# rescue Aws::BedrockAgentCore::Errors::ServiceError
|
38
|
+
# # rescues all Amazon Bedrock AgentCore Data Plane Fronting Layer API errors
|
39
|
+
# end
|
40
|
+
#
|
41
|
+
# See {Errors} for more information.
|
42
|
+
#
|
43
|
+
# @!group service
|
44
|
+
module Aws::BedrockAgentCore
|
45
|
+
autoload :Types, 'aws-sdk-bedrockagentcore/types'
|
46
|
+
autoload :ClientApi, 'aws-sdk-bedrockagentcore/client_api'
|
47
|
+
module Plugins
|
48
|
+
autoload :Endpoints, 'aws-sdk-bedrockagentcore/plugins/endpoints.rb'
|
49
|
+
end
|
50
|
+
autoload :Client, 'aws-sdk-bedrockagentcore/client'
|
51
|
+
autoload :Errors, 'aws-sdk-bedrockagentcore/errors'
|
52
|
+
autoload :Waiters, 'aws-sdk-bedrockagentcore/waiters'
|
53
|
+
autoload :Resource, 'aws-sdk-bedrockagentcore/resource'
|
54
|
+
autoload :EndpointParameters, 'aws-sdk-bedrockagentcore/endpoint_parameters'
|
55
|
+
autoload :EndpointProvider, 'aws-sdk-bedrockagentcore/endpoint_provider'
|
56
|
+
autoload :Endpoints, 'aws-sdk-bedrockagentcore/endpoints'
|
57
|
+
autoload :EventStreams, 'aws-sdk-bedrockagentcore/event_streams'
|
58
|
+
|
59
|
+
GEM_VERSION = '1.0.0'
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
require_relative 'aws-sdk-bedrockagentcore/customizations'
|
data/sig/client.rbs
ADDED
@@ -0,0 +1,515 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module BedrockAgentCore
|
10
|
+
class Client < ::Seahorse::Client::Base
|
11
|
+
include ::Aws::ClientStubs
|
12
|
+
|
13
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#initialize-instance_method
|
14
|
+
def self.new: (
|
15
|
+
?credentials: untyped,
|
16
|
+
?region: String,
|
17
|
+
?access_key_id: String,
|
18
|
+
?account_id: String,
|
19
|
+
?active_endpoint_cache: bool,
|
20
|
+
?adaptive_retry_wait_to_fill: bool,
|
21
|
+
?client_side_monitoring: bool,
|
22
|
+
?client_side_monitoring_client_id: String,
|
23
|
+
?client_side_monitoring_host: String,
|
24
|
+
?client_side_monitoring_port: Integer,
|
25
|
+
?client_side_monitoring_publisher: untyped,
|
26
|
+
?convert_params: bool,
|
27
|
+
?correct_clock_skew: bool,
|
28
|
+
?defaults_mode: String,
|
29
|
+
?disable_host_prefix_injection: bool,
|
30
|
+
?disable_request_compression: bool,
|
31
|
+
?endpoint: String,
|
32
|
+
?endpoint_cache_max_entries: Integer,
|
33
|
+
?endpoint_cache_max_threads: Integer,
|
34
|
+
?endpoint_cache_poll_interval: Integer,
|
35
|
+
?endpoint_discovery: bool,
|
36
|
+
?event_stream_handler: Proc,
|
37
|
+
?ignore_configured_endpoint_urls: bool,
|
38
|
+
?input_event_stream_handler: Proc,
|
39
|
+
?log_formatter: untyped,
|
40
|
+
?log_level: Symbol,
|
41
|
+
?logger: untyped,
|
42
|
+
?max_attempts: Integer,
|
43
|
+
?output_event_stream_handler: Proc,
|
44
|
+
?profile: String,
|
45
|
+
?request_checksum_calculation: String,
|
46
|
+
?request_min_compression_size_bytes: Integer,
|
47
|
+
?response_checksum_validation: String,
|
48
|
+
?retry_backoff: Proc,
|
49
|
+
?retry_base_delay: Float,
|
50
|
+
?retry_jitter: (:none | :equal | :full | ^(Integer) -> Integer),
|
51
|
+
?retry_limit: Integer,
|
52
|
+
?retry_max_delay: Integer,
|
53
|
+
?retry_mode: ("legacy" | "standard" | "adaptive"),
|
54
|
+
?sdk_ua_app_id: String,
|
55
|
+
?secret_access_key: String,
|
56
|
+
?session_token: String,
|
57
|
+
?sigv4a_signing_region_set: Array[String],
|
58
|
+
?stub_responses: untyped,
|
59
|
+
?telemetry_provider: Aws::Telemetry::TelemetryProviderBase,
|
60
|
+
?token_provider: untyped,
|
61
|
+
?use_dualstack_endpoint: bool,
|
62
|
+
?use_fips_endpoint: bool,
|
63
|
+
?validate_params: bool,
|
64
|
+
?endpoint_provider: untyped,
|
65
|
+
?http_proxy: String,
|
66
|
+
?http_open_timeout: (Float | Integer),
|
67
|
+
?http_read_timeout: (Float | Integer),
|
68
|
+
?http_idle_timeout: (Float | Integer),
|
69
|
+
?http_continue_timeout: (Float | Integer),
|
70
|
+
?ssl_timeout: (Float | Integer | nil),
|
71
|
+
?http_wire_trace: bool,
|
72
|
+
?ssl_verify_peer: bool,
|
73
|
+
?ssl_ca_bundle: String,
|
74
|
+
?ssl_ca_directory: String,
|
75
|
+
?ssl_ca_store: String,
|
76
|
+
?on_chunk_received: Proc,
|
77
|
+
?on_chunk_sent: Proc,
|
78
|
+
?raise_response_errors: bool
|
79
|
+
) -> instance
|
80
|
+
| (?Hash[Symbol, untyped]) -> instance
|
81
|
+
|
82
|
+
|
83
|
+
interface _CreateEventResponseSuccess
|
84
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::CreateEventOutput]
|
85
|
+
def event: () -> Types::Event
|
86
|
+
end
|
87
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#create_event-instance_method
|
88
|
+
def create_event: (
|
89
|
+
memory_id: ::String,
|
90
|
+
actor_id: ::String,
|
91
|
+
?session_id: ::String,
|
92
|
+
event_timestamp: ::Time,
|
93
|
+
payload: Array[
|
94
|
+
{
|
95
|
+
conversational: {
|
96
|
+
content: {
|
97
|
+
text: ::String?
|
98
|
+
},
|
99
|
+
role: ("ASSISTANT" | "USER" | "TOOL" | "OTHER")
|
100
|
+
}?,
|
101
|
+
blob: {
|
102
|
+
}?
|
103
|
+
},
|
104
|
+
],
|
105
|
+
?branch: {
|
106
|
+
root_event_id: ::String?,
|
107
|
+
name: ::String
|
108
|
+
},
|
109
|
+
?client_token: ::String
|
110
|
+
) -> _CreateEventResponseSuccess
|
111
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateEventResponseSuccess
|
112
|
+
|
113
|
+
interface _DeleteEventResponseSuccess
|
114
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteEventOutput]
|
115
|
+
def event_id: () -> ::String
|
116
|
+
end
|
117
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#delete_event-instance_method
|
118
|
+
def delete_event: (
|
119
|
+
memory_id: ::String,
|
120
|
+
session_id: ::String,
|
121
|
+
event_id: ::String,
|
122
|
+
actor_id: ::String
|
123
|
+
) -> _DeleteEventResponseSuccess
|
124
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteEventResponseSuccess
|
125
|
+
|
126
|
+
interface _DeleteMemoryRecordResponseSuccess
|
127
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::DeleteMemoryRecordOutput]
|
128
|
+
def memory_record_id: () -> ::String
|
129
|
+
end
|
130
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#delete_memory_record-instance_method
|
131
|
+
def delete_memory_record: (
|
132
|
+
memory_id: ::String,
|
133
|
+
memory_record_id: ::String
|
134
|
+
) -> _DeleteMemoryRecordResponseSuccess
|
135
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _DeleteMemoryRecordResponseSuccess
|
136
|
+
|
137
|
+
interface _GetBrowserSessionResponseSuccess
|
138
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetBrowserSessionResponse]
|
139
|
+
def browser_identifier: () -> ::String
|
140
|
+
def session_id: () -> ::String
|
141
|
+
def name: () -> ::String
|
142
|
+
def created_at: () -> ::Time
|
143
|
+
def view_port: () -> Types::ViewPort
|
144
|
+
def session_timeout_seconds: () -> ::Integer
|
145
|
+
def status: () -> ("READY" | "TERMINATED")
|
146
|
+
def streams: () -> Types::BrowserSessionStream
|
147
|
+
def session_replay_artifact: () -> ::String
|
148
|
+
def last_updated_at: () -> ::Time
|
149
|
+
end
|
150
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_browser_session-instance_method
|
151
|
+
def get_browser_session: (
|
152
|
+
browser_identifier: ::String,
|
153
|
+
session_id: ::String
|
154
|
+
) -> _GetBrowserSessionResponseSuccess
|
155
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetBrowserSessionResponseSuccess
|
156
|
+
|
157
|
+
interface _GetCodeInterpreterSessionResponseSuccess
|
158
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetCodeInterpreterSessionResponse]
|
159
|
+
def code_interpreter_identifier: () -> ::String
|
160
|
+
def session_id: () -> ::String
|
161
|
+
def name: () -> ::String
|
162
|
+
def created_at: () -> ::Time
|
163
|
+
def session_timeout_seconds: () -> ::Integer
|
164
|
+
def status: () -> ("READY" | "TERMINATED")
|
165
|
+
end
|
166
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_code_interpreter_session-instance_method
|
167
|
+
def get_code_interpreter_session: (
|
168
|
+
code_interpreter_identifier: ::String,
|
169
|
+
session_id: ::String
|
170
|
+
) -> _GetCodeInterpreterSessionResponseSuccess
|
171
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetCodeInterpreterSessionResponseSuccess
|
172
|
+
|
173
|
+
interface _GetEventResponseSuccess
|
174
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetEventOutput]
|
175
|
+
def event: () -> Types::Event
|
176
|
+
end
|
177
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_event-instance_method
|
178
|
+
def get_event: (
|
179
|
+
memory_id: ::String,
|
180
|
+
session_id: ::String,
|
181
|
+
actor_id: ::String,
|
182
|
+
event_id: ::String
|
183
|
+
) -> _GetEventResponseSuccess
|
184
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetEventResponseSuccess
|
185
|
+
|
186
|
+
interface _GetMemoryRecordResponseSuccess
|
187
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetMemoryRecordOutput]
|
188
|
+
def memory_record: () -> Types::MemoryRecord
|
189
|
+
end
|
190
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_memory_record-instance_method
|
191
|
+
def get_memory_record: (
|
192
|
+
memory_id: ::String,
|
193
|
+
memory_record_id: ::String
|
194
|
+
) -> _GetMemoryRecordResponseSuccess
|
195
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetMemoryRecordResponseSuccess
|
196
|
+
|
197
|
+
interface _GetResourceApiKeyResponseSuccess
|
198
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetResourceApiKeyResponse]
|
199
|
+
def api_key: () -> ::String
|
200
|
+
end
|
201
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_resource_api_key-instance_method
|
202
|
+
def get_resource_api_key: (
|
203
|
+
workload_identity_token: ::String,
|
204
|
+
resource_credential_provider_name: ::String
|
205
|
+
) -> _GetResourceApiKeyResponseSuccess
|
206
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourceApiKeyResponseSuccess
|
207
|
+
|
208
|
+
interface _GetResourceOauth2TokenResponseSuccess
|
209
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetResourceOauth2TokenResponse]
|
210
|
+
def authorization_url: () -> ::String
|
211
|
+
def access_token: () -> ::String
|
212
|
+
end
|
213
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_resource_oauth_2_token-instance_method
|
214
|
+
def get_resource_oauth_2_token: (
|
215
|
+
workload_identity_token: ::String,
|
216
|
+
?user_id: ::String,
|
217
|
+
resource_credential_provider_name: ::String,
|
218
|
+
scopes: Array[::String],
|
219
|
+
oauth2_flow: ("USER_FEDERATION" | "M2M"),
|
220
|
+
?resource_oauth_2_return_url: ::String,
|
221
|
+
?force_authentication: bool,
|
222
|
+
?custom_parameters: Hash[::String, ::String]
|
223
|
+
) -> _GetResourceOauth2TokenResponseSuccess
|
224
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetResourceOauth2TokenResponseSuccess
|
225
|
+
|
226
|
+
interface _GetWorkloadAccessTokenResponseSuccess
|
227
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetWorkloadAccessTokenResponse]
|
228
|
+
def workload_access_token: () -> ::String
|
229
|
+
end
|
230
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_workload_access_token-instance_method
|
231
|
+
def get_workload_access_token: (
|
232
|
+
workload_name: ::String
|
233
|
+
) -> _GetWorkloadAccessTokenResponseSuccess
|
234
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetWorkloadAccessTokenResponseSuccess
|
235
|
+
|
236
|
+
interface _GetWorkloadAccessTokenForJWTResponseSuccess
|
237
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetWorkloadAccessTokenForJWTResponse]
|
238
|
+
def workload_access_token: () -> ::String
|
239
|
+
end
|
240
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_workload_access_token_for_jwt-instance_method
|
241
|
+
def get_workload_access_token_for_jwt: (
|
242
|
+
workload_name: ::String,
|
243
|
+
user_token: ::String
|
244
|
+
) -> _GetWorkloadAccessTokenForJWTResponseSuccess
|
245
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetWorkloadAccessTokenForJWTResponseSuccess
|
246
|
+
|
247
|
+
interface _GetWorkloadAccessTokenForUserIdResponseSuccess
|
248
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::GetWorkloadAccessTokenForUserIdResponse]
|
249
|
+
def workload_access_token: () -> ::String
|
250
|
+
end
|
251
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#get_workload_access_token_for_user_id-instance_method
|
252
|
+
def get_workload_access_token_for_user_id: (
|
253
|
+
workload_name: ::String,
|
254
|
+
user_id: ::String
|
255
|
+
) -> _GetWorkloadAccessTokenForUserIdResponseSuccess
|
256
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _GetWorkloadAccessTokenForUserIdResponseSuccess
|
257
|
+
|
258
|
+
interface _InvokeAgentRuntimeResponseSuccess
|
259
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeAgentRuntimeResponse]
|
260
|
+
def runtime_session_id: () -> ::String
|
261
|
+
def mcp_session_id: () -> ::String
|
262
|
+
def mcp_protocol_version: () -> ::String
|
263
|
+
def trace_id: () -> ::String
|
264
|
+
def trace_parent: () -> ::String
|
265
|
+
def trace_state: () -> ::String
|
266
|
+
def baggage: () -> ::String
|
267
|
+
def content_type: () -> ::String
|
268
|
+
def response: () -> ::IO
|
269
|
+
def status_code: () -> ::Integer
|
270
|
+
end
|
271
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#invoke_agent_runtime-instance_method
|
272
|
+
def invoke_agent_runtime: (
|
273
|
+
?content_type: ::String,
|
274
|
+
?accept: ::String,
|
275
|
+
?mcp_session_id: ::String,
|
276
|
+
?runtime_session_id: ::String,
|
277
|
+
?mcp_protocol_version: ::String,
|
278
|
+
?runtime_user_id: ::String,
|
279
|
+
?trace_id: ::String,
|
280
|
+
?trace_parent: ::String,
|
281
|
+
?trace_state: ::String,
|
282
|
+
?baggage: ::String,
|
283
|
+
agent_runtime_arn: ::String,
|
284
|
+
?qualifier: ::String,
|
285
|
+
payload: ::String
|
286
|
+
) ?{ (*untyped) -> void } -> _InvokeAgentRuntimeResponseSuccess
|
287
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeAgentRuntimeResponseSuccess
|
288
|
+
|
289
|
+
interface _InvokeCodeInterpreterResponseSuccess
|
290
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::InvokeCodeInterpreterResponse]
|
291
|
+
def session_id: () -> ::String
|
292
|
+
def stream: () -> Types::CodeInterpreterStreamOutput
|
293
|
+
end
|
294
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#invoke_code_interpreter-instance_method
|
295
|
+
def invoke_code_interpreter: (
|
296
|
+
code_interpreter_identifier: ::String,
|
297
|
+
?session_id: ::String,
|
298
|
+
name: ("executeCode" | "executeCommand" | "readFiles" | "listFiles" | "removeFiles" | "writeFiles" | "startCommandExecution" | "getTask" | "stopTask"),
|
299
|
+
?arguments: {
|
300
|
+
code: ::String?,
|
301
|
+
language: ("python" | "javascript" | "typescript")?,
|
302
|
+
clear_context: bool?,
|
303
|
+
command: ::String?,
|
304
|
+
path: ::String?,
|
305
|
+
paths: Array[::String]?,
|
306
|
+
content: Array[
|
307
|
+
{
|
308
|
+
path: ::String,
|
309
|
+
text: ::String?,
|
310
|
+
blob: ::String?
|
311
|
+
},
|
312
|
+
]?,
|
313
|
+
directory_path: ::String?,
|
314
|
+
task_id: ::String?
|
315
|
+
}
|
316
|
+
) ?{ (*untyped) -> void } -> _InvokeCodeInterpreterResponseSuccess
|
317
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) ?{ (*untyped) -> void } -> _InvokeCodeInterpreterResponseSuccess
|
318
|
+
|
319
|
+
interface _ListActorsResponseSuccess
|
320
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListActorsOutput]
|
321
|
+
def actor_summaries: () -> ::Array[Types::ActorSummary]
|
322
|
+
def next_token: () -> ::String
|
323
|
+
end
|
324
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#list_actors-instance_method
|
325
|
+
def list_actors: (
|
326
|
+
memory_id: ::String,
|
327
|
+
?max_results: ::Integer,
|
328
|
+
?next_token: ::String
|
329
|
+
) -> _ListActorsResponseSuccess
|
330
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListActorsResponseSuccess
|
331
|
+
|
332
|
+
interface _ListBrowserSessionsResponseSuccess
|
333
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListBrowserSessionsResponse]
|
334
|
+
def items: () -> ::Array[Types::BrowserSessionSummary]
|
335
|
+
def next_token: () -> ::String
|
336
|
+
end
|
337
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#list_browser_sessions-instance_method
|
338
|
+
def list_browser_sessions: (
|
339
|
+
browser_identifier: ::String,
|
340
|
+
?max_results: ::Integer,
|
341
|
+
?next_token: ::String,
|
342
|
+
?status: ("READY" | "TERMINATED")
|
343
|
+
) -> _ListBrowserSessionsResponseSuccess
|
344
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListBrowserSessionsResponseSuccess
|
345
|
+
|
346
|
+
interface _ListCodeInterpreterSessionsResponseSuccess
|
347
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListCodeInterpreterSessionsResponse]
|
348
|
+
def items: () -> ::Array[Types::CodeInterpreterSessionSummary]
|
349
|
+
def next_token: () -> ::String
|
350
|
+
end
|
351
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#list_code_interpreter_sessions-instance_method
|
352
|
+
def list_code_interpreter_sessions: (
|
353
|
+
code_interpreter_identifier: ::String,
|
354
|
+
?max_results: ::Integer,
|
355
|
+
?next_token: ::String,
|
356
|
+
?status: ("READY" | "TERMINATED")
|
357
|
+
) -> _ListCodeInterpreterSessionsResponseSuccess
|
358
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListCodeInterpreterSessionsResponseSuccess
|
359
|
+
|
360
|
+
interface _ListEventsResponseSuccess
|
361
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListEventsOutput]
|
362
|
+
def events: () -> ::Array[Types::Event]
|
363
|
+
def next_token: () -> ::String
|
364
|
+
end
|
365
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#list_events-instance_method
|
366
|
+
def list_events: (
|
367
|
+
memory_id: ::String,
|
368
|
+
session_id: ::String,
|
369
|
+
actor_id: ::String,
|
370
|
+
?include_payloads: bool,
|
371
|
+
?filter: {
|
372
|
+
branch: {
|
373
|
+
name: ::String,
|
374
|
+
include_parent_branches: bool?
|
375
|
+
}?
|
376
|
+
},
|
377
|
+
?max_results: ::Integer,
|
378
|
+
?next_token: ::String
|
379
|
+
) -> _ListEventsResponseSuccess
|
380
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListEventsResponseSuccess
|
381
|
+
|
382
|
+
interface _ListMemoryRecordsResponseSuccess
|
383
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListMemoryRecordsOutput]
|
384
|
+
def memory_record_summaries: () -> ::Array[Types::MemoryRecordSummary]
|
385
|
+
def next_token: () -> ::String
|
386
|
+
end
|
387
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#list_memory_records-instance_method
|
388
|
+
def list_memory_records: (
|
389
|
+
memory_id: ::String,
|
390
|
+
namespace: ::String,
|
391
|
+
?memory_strategy_id: ::String,
|
392
|
+
?max_results: ::Integer,
|
393
|
+
?next_token: ::String
|
394
|
+
) -> _ListMemoryRecordsResponseSuccess
|
395
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListMemoryRecordsResponseSuccess
|
396
|
+
|
397
|
+
interface _ListSessionsResponseSuccess
|
398
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::ListSessionsOutput]
|
399
|
+
def session_summaries: () -> ::Array[Types::SessionSummary]
|
400
|
+
def next_token: () -> ::String
|
401
|
+
end
|
402
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#list_sessions-instance_method
|
403
|
+
def list_sessions: (
|
404
|
+
memory_id: ::String,
|
405
|
+
actor_id: ::String,
|
406
|
+
?max_results: ::Integer,
|
407
|
+
?next_token: ::String
|
408
|
+
) -> _ListSessionsResponseSuccess
|
409
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _ListSessionsResponseSuccess
|
410
|
+
|
411
|
+
interface _RetrieveMemoryRecordsResponseSuccess
|
412
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::RetrieveMemoryRecordsOutput]
|
413
|
+
def memory_record_summaries: () -> ::Array[Types::MemoryRecordSummary]
|
414
|
+
def next_token: () -> ::String
|
415
|
+
end
|
416
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#retrieve_memory_records-instance_method
|
417
|
+
def retrieve_memory_records: (
|
418
|
+
memory_id: ::String,
|
419
|
+
namespace: ::String,
|
420
|
+
search_criteria: {
|
421
|
+
search_query: ::String,
|
422
|
+
memory_strategy_id: ::String?,
|
423
|
+
top_k: ::Integer?
|
424
|
+
},
|
425
|
+
?next_token: ::String,
|
426
|
+
?max_results: ::Integer
|
427
|
+
) -> _RetrieveMemoryRecordsResponseSuccess
|
428
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _RetrieveMemoryRecordsResponseSuccess
|
429
|
+
|
430
|
+
interface _StartBrowserSessionResponseSuccess
|
431
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StartBrowserSessionResponse]
|
432
|
+
def browser_identifier: () -> ::String
|
433
|
+
def session_id: () -> ::String
|
434
|
+
def created_at: () -> ::Time
|
435
|
+
def streams: () -> Types::BrowserSessionStream
|
436
|
+
end
|
437
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#start_browser_session-instance_method
|
438
|
+
def start_browser_session: (
|
439
|
+
browser_identifier: ::String,
|
440
|
+
?name: ::String,
|
441
|
+
?session_timeout_seconds: ::Integer,
|
442
|
+
?view_port: {
|
443
|
+
width: ::Integer,
|
444
|
+
height: ::Integer
|
445
|
+
},
|
446
|
+
?client_token: ::String
|
447
|
+
) -> _StartBrowserSessionResponseSuccess
|
448
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartBrowserSessionResponseSuccess
|
449
|
+
|
450
|
+
interface _StartCodeInterpreterSessionResponseSuccess
|
451
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StartCodeInterpreterSessionResponse]
|
452
|
+
def code_interpreter_identifier: () -> ::String
|
453
|
+
def session_id: () -> ::String
|
454
|
+
def created_at: () -> ::Time
|
455
|
+
end
|
456
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#start_code_interpreter_session-instance_method
|
457
|
+
def start_code_interpreter_session: (
|
458
|
+
code_interpreter_identifier: ::String,
|
459
|
+
?name: ::String,
|
460
|
+
?session_timeout_seconds: ::Integer,
|
461
|
+
?client_token: ::String
|
462
|
+
) -> _StartCodeInterpreterSessionResponseSuccess
|
463
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StartCodeInterpreterSessionResponseSuccess
|
464
|
+
|
465
|
+
interface _StopBrowserSessionResponseSuccess
|
466
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StopBrowserSessionResponse]
|
467
|
+
def browser_identifier: () -> ::String
|
468
|
+
def session_id: () -> ::String
|
469
|
+
def last_updated_at: () -> ::Time
|
470
|
+
end
|
471
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#stop_browser_session-instance_method
|
472
|
+
def stop_browser_session: (
|
473
|
+
browser_identifier: ::String,
|
474
|
+
session_id: ::String,
|
475
|
+
?client_token: ::String
|
476
|
+
) -> _StopBrowserSessionResponseSuccess
|
477
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopBrowserSessionResponseSuccess
|
478
|
+
|
479
|
+
interface _StopCodeInterpreterSessionResponseSuccess
|
480
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::StopCodeInterpreterSessionResponse]
|
481
|
+
def code_interpreter_identifier: () -> ::String
|
482
|
+
def session_id: () -> ::String
|
483
|
+
def last_updated_at: () -> ::Time
|
484
|
+
end
|
485
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#stop_code_interpreter_session-instance_method
|
486
|
+
def stop_code_interpreter_session: (
|
487
|
+
code_interpreter_identifier: ::String,
|
488
|
+
session_id: ::String,
|
489
|
+
?client_token: ::String
|
490
|
+
) -> _StopCodeInterpreterSessionResponseSuccess
|
491
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _StopCodeInterpreterSessionResponseSuccess
|
492
|
+
|
493
|
+
interface _UpdateBrowserStreamResponseSuccess
|
494
|
+
include ::Seahorse::Client::_ResponseSuccess[Types::UpdateBrowserStreamResponse]
|
495
|
+
def browser_identifier: () -> ::String
|
496
|
+
def session_id: () -> ::String
|
497
|
+
def streams: () -> Types::BrowserSessionStream
|
498
|
+
def updated_at: () -> ::Time
|
499
|
+
end
|
500
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/BedrockAgentCore/Client.html#update_browser_stream-instance_method
|
501
|
+
def update_browser_stream: (
|
502
|
+
browser_identifier: ::String,
|
503
|
+
session_id: ::String,
|
504
|
+
stream_update: {
|
505
|
+
automation_stream_update: {
|
506
|
+
stream_status: ("ENABLED" | "DISABLED")?
|
507
|
+
}?
|
508
|
+
},
|
509
|
+
?client_token: ::String
|
510
|
+
) -> _UpdateBrowserStreamResponseSuccess
|
511
|
+
| (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateBrowserStreamResponseSuccess
|
512
|
+
end
|
513
|
+
end
|
514
|
+
end
|
515
|
+
|
data/sig/errors.rbs
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module BedrockAgentCore
|
10
|
+
module Errors
|
11
|
+
class ServiceError < ::Aws::Errors::ServiceError
|
12
|
+
end
|
13
|
+
|
14
|
+
class AccessDeniedException < ::Aws::Errors::ServiceError
|
15
|
+
def message: () -> ::String
|
16
|
+
end
|
17
|
+
class ConflictException < ::Aws::Errors::ServiceError
|
18
|
+
def message: () -> ::String
|
19
|
+
end
|
20
|
+
class InternalServerException < ::Aws::Errors::ServiceError
|
21
|
+
def message: () -> ::String
|
22
|
+
end
|
23
|
+
class InvalidInputException < ::Aws::Errors::ServiceError
|
24
|
+
def message: () -> ::String
|
25
|
+
end
|
26
|
+
class ResourceNotFoundException < ::Aws::Errors::ServiceError
|
27
|
+
def message: () -> ::String
|
28
|
+
end
|
29
|
+
class RuntimeClientError < ::Aws::Errors::ServiceError
|
30
|
+
def message: () -> ::String
|
31
|
+
end
|
32
|
+
class ServiceException < ::Aws::Errors::ServiceError
|
33
|
+
def message: () -> ::String
|
34
|
+
end
|
35
|
+
class ServiceQuotaExceededException < ::Aws::Errors::ServiceError
|
36
|
+
def message: () -> ::String
|
37
|
+
end
|
38
|
+
class ThrottledException < ::Aws::Errors::ServiceError
|
39
|
+
def message: () -> ::String
|
40
|
+
end
|
41
|
+
class ThrottlingException < ::Aws::Errors::ServiceError
|
42
|
+
def message: () -> ::String
|
43
|
+
end
|
44
|
+
class UnauthorizedException < ::Aws::Errors::ServiceError
|
45
|
+
def message: () -> ::String
|
46
|
+
end
|
47
|
+
class ValidationException < ::Aws::Errors::ServiceError
|
48
|
+
def message: () -> ::String
|
49
|
+
def reason: () -> ::String
|
50
|
+
def field_list: () -> ::String
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|