16 16 | }
|
17 17 |
|
18 18 | pub fn parse_http_error_metadata(
|
19 19 | _response_status: u16,
|
20 20 | response_headers: &::aws_smithy_runtime_api::http::Headers,
|
21 21 | response_body: &[u8],
|
22 22 | ) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
|
23 23 | crate::json_errors::parse_error_metadata(response_body, response_headers)
|
24 24 | }
|
25 25 |
|
26 - | pub(crate) mod shape_apply_guardrail;
|
27 - |
|
28 26 | pub(crate) mod shape_converse;
|
29 27 |
|
30 28 | pub(crate) mod shape_converse_stream;
|
31 29 |
|
32 - | pub(crate) mod shape_get_async_invoke;
|
33 - |
|
34 30 | pub(crate) mod shape_invoke_model;
|
35 31 |
|
36 32 | pub(crate) mod shape_invoke_model_input;
|
37 33 |
|
38 - | pub(crate) mod shape_invoke_model_with_bidirectional_stream;
|
39 - |
|
40 34 | pub(crate) mod shape_invoke_model_with_response_stream;
|
41 35 |
|
42 36 | pub(crate) mod shape_invoke_model_with_response_stream_input;
|
43 37 |
|
44 - | pub(crate) mod shape_list_async_invokes;
|
45 - |
|
46 - | pub(crate) mod shape_start_async_invoke;
|
47 - |
|
48 38 | pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
|
49 39 | if data.is_empty() {
|
50 40 | b"{}"
|
51 41 | } else {
|
52 42 | data
|
53 43 | }
|
54 44 | }
|
55 45 |
|
56 46 | pub(crate) mod shape_access_denied_exception;
|
57 47 |
|
58 - | pub(crate) mod shape_apply_guardrail_input;
|
59 - |
|
60 - | pub(crate) mod shape_conflict_exception;
|
61 - |
|
62 48 | pub(crate) mod shape_converse_input;
|
63 49 |
|
64 50 | pub(crate) mod shape_converse_stream_input;
|
65 51 |
|
66 52 | pub(crate) mod shape_converse_stream_output;
|
67 53 |
|
68 54 | pub(crate) mod shape_internal_server_exception;
|
69 55 |
|
70 56 | pub(crate) mod shape_invoke_model_output;
|
71 57 |
|
72 - | pub(crate) mod shape_invoke_model_with_bidirectional_stream_input;
|
73 - |
|
74 - | pub(crate) mod shape_invoke_model_with_bidirectional_stream_output;
|
75 - |
|
76 58 | pub(crate) mod shape_invoke_model_with_response_stream_output;
|
77 59 |
|
78 60 | pub(crate) mod shape_model_error_exception;
|
79 61 |
|
80 62 | pub(crate) mod shape_model_not_ready_exception;
|
81 63 |
|
82 64 | pub(crate) mod shape_model_stream_error_exception;
|
83 65 |
|
84 66 | pub(crate) mod shape_model_timeout_exception;
|
85 67 |
|
86 68 | pub(crate) mod shape_resource_not_found_exception;
|
87 69 |
|
88 70 | pub(crate) mod shape_service_quota_exceeded_exception;
|
89 71 |
|
90 - | pub(crate) mod shape_service_unavailable_exception;
|
91 - |
|
92 - | pub(crate) mod shape_start_async_invoke_input;
|
93 - |
|
94 72 | pub(crate) mod shape_throttling_exception;
|
95 73 |
|
96 74 | pub(crate) mod shape_validation_exception;
|
97 75 |
|
98 76 | pub fn parse_event_stream_error_metadata(
|
99 77 | payload: &::bytes::Bytes,
|
100 78 | ) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
|
101 79 | crate::json_errors::parse_error_metadata(payload, &::aws_smithy_runtime_api::http::Headers::new())
|
102 80 | }
|
103 81 |
|
104 - | pub(crate) mod shape_async_invoke_output_data_config;
|
105 - |
|
106 - | pub(crate) mod shape_async_invoke_summaries;
|
107 - |
|
108 - | pub(crate) mod shape_bidirectional_input_payload_part;
|
109 - |
|
110 82 | pub(crate) mod shape_converse_metrics;
|
111 83 |
|
112 84 | pub(crate) mod shape_converse_output;
|
113 85 |
|
114 - | pub(crate) mod shape_converse_trace;
|
115 - |
|
116 - | pub(crate) mod shape_guardrail_assessment_list;
|
117 - |
|
118 - | pub(crate) mod shape_guardrail_configuration;
|
119 - |
|
120 - | pub(crate) mod shape_guardrail_content_block;
|
121 - |
|
122 - | pub(crate) mod shape_guardrail_coverage;
|
123 - |
|
124 - | pub(crate) mod shape_guardrail_output_content_list;
|
125 - |
|
126 - | pub(crate) mod shape_guardrail_stream_configuration;
|
127 - |
|
128 - | pub(crate) mod shape_guardrail_usage;
|
129 - |
|
130 86 | pub(crate) mod shape_inference_configuration;
|
131 87 |
|
132 88 | pub(crate) mod shape_message;
|
133 89 |
|
134 - | pub(crate) mod shape_performance_configuration;
|
135 - |
|
136 - | pub(crate) mod shape_prompt_variable_values;
|
137 - |
|
138 90 | pub(crate) mod shape_system_content_block;
|
139 91 |
|
140 - | pub(crate) mod shape_tag;
|
141 - |
|
142 92 | pub(crate) mod shape_token_usage;
|
143 93 |
|
144 94 | pub(crate) mod shape_tool_configuration;
|
145 95 |
|
146 - | pub(crate) mod shape_async_invoke_s3_output_data_config;
|
147 - |
|
148 - | pub(crate) mod shape_async_invoke_summary;
|
149 - |
|
150 - | pub(crate) mod shape_bidirectional_output_payload_part;
|
151 - |
|
152 - | pub(crate) mod shape_cache_point_block;
|
153 - |
|
154 96 | pub(crate) mod shape_content_block;
|
155 97 |
|
156 98 | pub(crate) mod shape_content_block_delta_event;
|
157 99 |
|
158 100 | pub(crate) mod shape_content_block_start_event;
|
159 101 |
|
160 102 | pub(crate) mod shape_content_block_stop_event;
|
161 103 |
|
162 104 | pub(crate) mod shape_converse_stream_metadata_event;
|
163 105 |
|
164 - | pub(crate) mod shape_guardrail_assessment;
|
165 - |
|
166 - | pub(crate) mod shape_guardrail_converse_content_block;
|
167 - |
|
168 - | pub(crate) mod shape_guardrail_image_block;
|
169 - |
|
170 - | pub(crate) mod shape_guardrail_image_coverage;
|
171 - |
|
172 - | pub(crate) mod shape_guardrail_output_content;
|
173 - |
|
174 - | pub(crate) mod shape_guardrail_text_block;
|
175 - |
|
176 - | pub(crate) mod shape_guardrail_text_characters_coverage;
|
177 - |
|
178 - | pub(crate) mod shape_guardrail_trace_assessment;
|
179 - |
|
180 106 | pub(crate) mod shape_message_start_event;
|
181 107 |
|
182 108 | pub(crate) mod shape_message_stop_event;
|
183 109 |
|
184 110 | pub(crate) mod shape_payload_part;
|
185 111 |
|
186 - | pub(crate) mod shape_prompt_router_trace;
|
187 - |
|
188 112 | pub(crate) mod shape_tool;
|
189 113 |
|
190 114 | pub(crate) mod shape_tool_choice;
|
191 115 |
|
192 116 | pub(crate) mod shape_any_tool_choice;
|
193 117 |
|
194 118 | pub(crate) mod shape_auto_tool_choice;
|
195 119 |
|
196 - | pub(crate) mod shape_citations_content_block;
|
197 - |
|
198 120 | pub(crate) mod shape_content_blocks;
|
199 121 |
|
200 - | pub(crate) mod shape_document_block;
|
201 - |
|
202 - | pub(crate) mod shape_guardrail_assessment_list_map;
|
203 - |
|
204 - | pub(crate) mod shape_guardrail_assessment_map;
|
205 - |
|
206 - | pub(crate) mod shape_guardrail_content_policy_assessment;
|
207 - |
|
208 - | pub(crate) mod shape_guardrail_contextual_grounding_policy_assessment;
|
209 - |
|
210 - | pub(crate) mod shape_guardrail_converse_image_block;
|
211 - |
|
212 - | pub(crate) mod shape_guardrail_converse_text_block;
|
213 - |
|
214 - | pub(crate) mod shape_guardrail_image_source;
|
215 - |
|
216 - | pub(crate) mod shape_guardrail_invocation_metrics;
|
217 - |
|
218 - | pub(crate) mod shape_guardrail_sensitive_information_policy_assessment;
|
219 - |
|
220 - | pub(crate) mod shape_guardrail_topic_policy_assessment;
|
221 - |
|
222 - | pub(crate) mod shape_guardrail_word_policy_assessment;
|
223 - |
|
224 122 | pub(crate) mod shape_image_block;
|
225 123 |
|
226 - | pub(crate) mod shape_model_outputs;
|
227 - |
|
228 - | pub(crate) mod shape_reasoning_content_block;
|
229 - |
|
230 124 | pub(crate) mod shape_specific_tool_choice;
|
231 125 |
|
232 126 | pub(crate) mod shape_tool_result_block;
|
233 127 |
|
234 128 | pub(crate) mod shape_tool_specification;
|
235 129 |
|
236 130 | pub(crate) mod shape_tool_use_block;
|
237 131 |
|
238 - | pub(crate) mod shape_video_block;
|
239 - |
|
240 - | pub(crate) mod shape_citation;
|
241 - |
|
242 - | pub(crate) mod shape_citation_generated_content;
|
243 - |
|
244 - | pub(crate) mod shape_citations_config;
|
245 - |
|
246 132 | pub(crate) mod shape_content_block_delta;
|
247 133 |
|
248 134 | pub(crate) mod shape_content_block_start;
|
249 135 |
|
250 136 | pub(crate) mod shape_converse_stream_metrics;
|
251 137 |
|
252 - | pub(crate) mod shape_converse_stream_trace;
|
253 - |
|
254 - | pub(crate) mod shape_document_source;
|
255 - |
|
256 - | pub(crate) mod shape_guardrail_content_filter_list;
|
257 - |
|
258 - | pub(crate) mod shape_guardrail_contextual_grounding_filters;
|
259 - |
|
260 - | pub(crate) mod shape_guardrail_converse_image_source;
|
261 - |
|
262 - | pub(crate) mod shape_guardrail_custom_word_list;
|
263 - |
|
264 - | pub(crate) mod shape_guardrail_managed_word_list;
|
265 - |
|
266 - | pub(crate) mod shape_guardrail_pii_entity_filter_list;
|
267 - |
|
268 - | pub(crate) mod shape_guardrail_regex_filter_list;
|
269 - |
|
270 - | pub(crate) mod shape_guardrail_topic_list;
|
271 - |
|
272 138 | pub(crate) mod shape_image_source;
|
273 139 |
|
274 - | pub(crate) mod shape_reasoning_text_block;
|
275 - |
|
276 140 | pub(crate) mod shape_tool_input_schema;
|
277 141 |
|
278 142 | pub(crate) mod shape_tool_result_content_block;
|
279 143 |
|
280 - | pub(crate) mod shape_video_source;
|
281 - |
|
282 - | pub(crate) mod shape_citation_location;
|
283 - |
|
284 - | pub(crate) mod shape_citation_source_content;
|
285 - |
|
286 - | pub(crate) mod shape_citations_delta;
|
287 - |
|
288 - | pub(crate) mod shape_document_content_block;
|
289 - |
|
290 - | pub(crate) mod shape_guardrail_content_filter;
|
291 - |
|
292 - | pub(crate) mod shape_guardrail_contextual_grounding_filter;
|
293 - |
|
294 - | pub(crate) mod shape_guardrail_custom_word;
|
295 - |
|
296 - | pub(crate) mod shape_guardrail_managed_word;
|
297 - |
|
298 - | pub(crate) mod shape_guardrail_pii_entity_filter;
|
299 - |
|
300 - | pub(crate) mod shape_guardrail_regex_filter;
|
301 - |
|
302 - | pub(crate) mod shape_guardrail_topic;
|
303 - |
|
304 - | pub(crate) mod shape_reasoning_content_block_delta;
|
305 - |
|
306 - | pub(crate) mod shape_s3_location;
|
307 - |
|
308 144 | pub(crate) mod shape_tool_use_block_delta;
|
309 145 |
|
310 146 | pub(crate) mod shape_tool_use_block_start;
|
311 147 |
|
312 - | pub(crate) mod shape_citation_generated_content_list;
|
313 - |
|
314 - | pub(crate) mod shape_citation_source_content_list_delta;
|
315 - |
|
316 - | pub(crate) mod shape_citations;
|
317 - |
|
318 - | pub(crate) mod shape_document_char_location;
|
319 - |
|
320 - | pub(crate) mod shape_document_chunk_location;
|
321 - |
|
322 - | pub(crate) mod shape_document_page_location;
|
323 - |
|
324 148 | pub(crate) mod shape_tool_result_content_blocks;
|
325 - |
|
326 - | pub(crate) mod shape_citation_source_content_delta;
|
327 - |
|
328 - | pub(crate) mod shape_document_content_blocks;
|
329 - |
|
330 - | pub(crate) mod shape_guardrail_converse_content_qualifier_list;
|
331 - |
|
332 - | pub(crate) mod shape_citation_source_content_list;
|