aws-sdk-bedrockagentruntime 1.15.0 → 1.16.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-bedrockagentruntime/client.rb +536 -10
- data/lib/aws-sdk-bedrockagentruntime/client_api.rb +272 -0
- data/lib/aws-sdk-bedrockagentruntime/endpoints.rb +42 -0
- data/lib/aws-sdk-bedrockagentruntime/event_streams.rb +89 -0
- data/lib/aws-sdk-bedrockagentruntime/plugins/endpoints.rb +6 -0
- data/lib/aws-sdk-bedrockagentruntime/types.rb +761 -13
- data/lib/aws-sdk-bedrockagentruntime.rb +2 -2
- data/sig/client.rbs +145 -0
- data/sig/types.rbs +209 -3
- metadata +2 -2
@@ -35,6 +35,10 @@ module Aws::BedrockAgentRuntime
|
|
35
35
|
@event_emitter.on(:dependency_failed_exception, block) if block_given?
|
36
36
|
end
|
37
37
|
|
38
|
+
def on_files_event(&block)
|
39
|
+
@event_emitter.on(:files, block) if block_given?
|
40
|
+
end
|
41
|
+
|
38
42
|
def on_internal_server_exception_event(&block)
|
39
43
|
@event_emitter.on(:internal_server_exception, block) if block_given?
|
40
44
|
end
|
@@ -81,6 +85,7 @@ module Aws::BedrockAgentRuntime
|
|
81
85
|
on_chunk_event(&block)
|
82
86
|
on_conflict_exception_event(&block)
|
83
87
|
on_dependency_failed_exception_event(&block)
|
88
|
+
on_files_event(&block)
|
84
89
|
on_internal_server_exception_event(&block)
|
85
90
|
on_resource_not_found_exception_event(&block)
|
86
91
|
on_return_control_event(&block)
|
@@ -98,6 +103,90 @@ module Aws::BedrockAgentRuntime
|
|
98
103
|
attr_reader :event_emitter
|
99
104
|
|
100
105
|
end
|
106
|
+
class FlowResponseStream
|
107
|
+
|
108
|
+
def initialize
|
109
|
+
@event_emitter = Aws::EventEmitter.new
|
110
|
+
end
|
111
|
+
|
112
|
+
def on_access_denied_exception_event(&block)
|
113
|
+
@event_emitter.on(:access_denied_exception, block) if block_given?
|
114
|
+
end
|
115
|
+
|
116
|
+
def on_bad_gateway_exception_event(&block)
|
117
|
+
@event_emitter.on(:bad_gateway_exception, block) if block_given?
|
118
|
+
end
|
119
|
+
|
120
|
+
def on_conflict_exception_event(&block)
|
121
|
+
@event_emitter.on(:conflict_exception, block) if block_given?
|
122
|
+
end
|
123
|
+
|
124
|
+
def on_dependency_failed_exception_event(&block)
|
125
|
+
@event_emitter.on(:dependency_failed_exception, block) if block_given?
|
126
|
+
end
|
127
|
+
|
128
|
+
def on_flow_completion_event_event(&block)
|
129
|
+
@event_emitter.on(:flow_completion_event, block) if block_given?
|
130
|
+
end
|
131
|
+
|
132
|
+
def on_flow_output_event_event(&block)
|
133
|
+
@event_emitter.on(:flow_output_event, block) if block_given?
|
134
|
+
end
|
135
|
+
|
136
|
+
def on_internal_server_exception_event(&block)
|
137
|
+
@event_emitter.on(:internal_server_exception, block) if block_given?
|
138
|
+
end
|
139
|
+
|
140
|
+
def on_resource_not_found_exception_event(&block)
|
141
|
+
@event_emitter.on(:resource_not_found_exception, block) if block_given?
|
142
|
+
end
|
143
|
+
|
144
|
+
def on_service_quota_exceeded_exception_event(&block)
|
145
|
+
@event_emitter.on(:service_quota_exceeded_exception, block) if block_given?
|
146
|
+
end
|
147
|
+
|
148
|
+
def on_throttling_exception_event(&block)
|
149
|
+
@event_emitter.on(:throttling_exception, block) if block_given?
|
150
|
+
end
|
151
|
+
|
152
|
+
def on_validation_exception_event(&block)
|
153
|
+
@event_emitter.on(:validation_exception, block) if block_given?
|
154
|
+
end
|
155
|
+
|
156
|
+
def on_error_event(&block)
|
157
|
+
@event_emitter.on(:error, block) if block_given?
|
158
|
+
end
|
159
|
+
|
160
|
+
def on_initial_response_event(&block)
|
161
|
+
@event_emitter.on(:initial_response, block) if block_given?
|
162
|
+
end
|
163
|
+
|
164
|
+
def on_unknown_event(&block)
|
165
|
+
@event_emitter.on(:unknown_event, block) if block_given?
|
166
|
+
end
|
167
|
+
|
168
|
+
def on_event(&block)
|
169
|
+
on_access_denied_exception_event(&block)
|
170
|
+
on_bad_gateway_exception_event(&block)
|
171
|
+
on_conflict_exception_event(&block)
|
172
|
+
on_dependency_failed_exception_event(&block)
|
173
|
+
on_flow_completion_event_event(&block)
|
174
|
+
on_flow_output_event_event(&block)
|
175
|
+
on_internal_server_exception_event(&block)
|
176
|
+
on_resource_not_found_exception_event(&block)
|
177
|
+
on_service_quota_exceeded_exception_event(&block)
|
178
|
+
on_throttling_exception_event(&block)
|
179
|
+
on_validation_exception_event(&block)
|
180
|
+
on_error_event(&block)
|
181
|
+
on_initial_response_event(&block)
|
182
|
+
on_unknown_event(&block)
|
183
|
+
end
|
184
|
+
|
185
|
+
# @api private
|
186
|
+
# @return Aws::EventEmitter
|
187
|
+
attr_reader :event_emitter
|
188
|
+
|
189
|
+
end
|
101
190
|
|
102
191
|
end
|
103
192
|
end
|
@@ -58,8 +58,14 @@ module Aws::BedrockAgentRuntime
|
|
58
58
|
|
59
59
|
def parameters_for_operation(context)
|
60
60
|
case context.operation_name
|
61
|
+
when :delete_agent_memory
|
62
|
+
Aws::BedrockAgentRuntime::Endpoints::DeleteAgentMemory.build(context)
|
63
|
+
when :get_agent_memory
|
64
|
+
Aws::BedrockAgentRuntime::Endpoints::GetAgentMemory.build(context)
|
61
65
|
when :invoke_agent
|
62
66
|
Aws::BedrockAgentRuntime::Endpoints::InvokeAgent.build(context)
|
67
|
+
when :invoke_flow
|
68
|
+
Aws::BedrockAgentRuntime::Endpoints::InvokeFlow.build(context)
|
63
69
|
when :retrieve
|
64
70
|
Aws::BedrockAgentRuntime::Endpoints::Retrieve.build(context)
|
65
71
|
when :retrieve_and_generate
|