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 + |
|
26 28 | pub(crate) mod shape_converse;
|
27 29 |
|
28 30 | pub(crate) mod shape_converse_stream;
|
29 31 |
|
32 + | pub(crate) mod shape_get_async_invoke;
|
33 + |
|
30 34 | pub(crate) mod shape_invoke_model;
|
31 35 |
|
32 36 | pub(crate) mod shape_invoke_model_input;
|
33 37 |
|
38 + | pub(crate) mod shape_invoke_model_with_bidirectional_stream;
|
39 + |
|
34 40 | pub(crate) mod shape_invoke_model_with_response_stream;
|
35 41 |
|
36 42 | pub(crate) mod shape_invoke_model_with_response_stream_input;
|
37 43 |
|
44 + | pub(crate) mod shape_list_async_invokes;
|
45 + |
|
46 + | pub(crate) mod shape_start_async_invoke;
|
47 + |
|
38 48 | pub(crate) fn or_empty_doc(data: &[u8]) -> &[u8] {
|
39 49 | if data.is_empty() {
|
40 50 | b"{}"
|
41 51 | } else {
|
42 52 | data
|
43 53 | }
|
44 54 | }
|
45 55 |
|
46 56 | pub(crate) mod shape_access_denied_exception;
|
47 57 |
|
58 + | pub(crate) mod shape_apply_guardrail_input;
|
59 + |
|
60 + | pub(crate) mod shape_conflict_exception;
|
61 + |
|
48 62 | pub(crate) mod shape_converse_input;
|
49 63 |
|
50 64 | pub(crate) mod shape_converse_stream_input;
|
51 65 |
|
52 66 | pub(crate) mod shape_converse_stream_output;
|
53 67 |
|
54 68 | pub(crate) mod shape_internal_server_exception;
|
55 69 |
|
56 70 | pub(crate) mod shape_invoke_model_output;
|
57 71 |
|
72 + | pub(crate) mod shape_invoke_model_with_bidirectional_stream_input;
|
73 + |
|
74 + | pub(crate) mod shape_invoke_model_with_bidirectional_stream_output;
|
75 + |
|
58 76 | pub(crate) mod shape_invoke_model_with_response_stream_output;
|
59 77 |
|
60 78 | pub(crate) mod shape_model_error_exception;
|
61 79 |
|
62 80 | pub(crate) mod shape_model_not_ready_exception;
|
63 81 |
|
64 82 | pub(crate) mod shape_model_stream_error_exception;
|
65 83 |
|
66 84 | pub(crate) mod shape_model_timeout_exception;
|
67 85 |
|
68 86 | pub(crate) mod shape_resource_not_found_exception;
|
69 87 |
|
70 88 | pub(crate) mod shape_service_quota_exceeded_exception;
|
71 89 |
|
90 + | pub(crate) mod shape_service_unavailable_exception;
|
91 + |
|
92 + | pub(crate) mod shape_start_async_invoke_input;
|
93 + |
|
72 94 | pub(crate) mod shape_throttling_exception;
|
73 95 |
|
74 96 | pub(crate) mod shape_validation_exception;
|
75 97 |
|
76 98 | pub fn parse_event_stream_error_metadata(
|
77 99 | payload: &::bytes::Bytes,
|
78 100 | ) -> ::std::result::Result<::aws_smithy_types::error::metadata::Builder, ::aws_smithy_json::deserialize::error::DeserializeError> {
|
79 101 | crate::json_errors::parse_error_metadata(payload, &::aws_smithy_runtime_api::http::Headers::new())
|
80 102 | }
|
81 103 |
|
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 + |
|
82 110 | pub(crate) mod shape_converse_metrics;
|
83 111 |
|
84 112 | pub(crate) mod shape_converse_output;
|
85 113 |
|
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 + |
|
86 130 | pub(crate) mod shape_inference_configuration;
|
87 131 |
|
88 132 | pub(crate) mod shape_message;
|
89 133 |
|
134 + | pub(crate) mod shape_performance_configuration;
|
135 + |
|
136 + | pub(crate) mod shape_prompt_variable_values;
|
137 + |
|
90 138 | pub(crate) mod shape_system_content_block;
|
91 139 |
|
140 + | pub(crate) mod shape_tag;
|
141 + |
|
92 142 | pub(crate) mod shape_token_usage;
|
93 143 |
|
94 144 | pub(crate) mod shape_tool_configuration;
|
95 145 |
|
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 + |
|
96 154 | pub(crate) mod shape_content_block;
|
97 155 |
|
98 156 | pub(crate) mod shape_content_block_delta_event;
|
99 157 |
|
100 158 | pub(crate) mod shape_content_block_start_event;
|
101 159 |
|
102 160 | pub(crate) mod shape_content_block_stop_event;
|
103 161 |
|
104 162 | pub(crate) mod shape_converse_stream_metadata_event;
|
105 163 |
|
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 + |
|
106 180 | pub(crate) mod shape_message_start_event;
|
107 181 |
|
108 182 | pub(crate) mod shape_message_stop_event;
|
109 183 |
|
110 184 | pub(crate) mod shape_payload_part;
|
111 185 |
|
186 + | pub(crate) mod shape_prompt_router_trace;
|
187 + |
|
112 188 | pub(crate) mod shape_tool;
|
113 189 |
|
114 190 | pub(crate) mod shape_tool_choice;
|
115 191 |
|
116 192 | pub(crate) mod shape_any_tool_choice;
|
117 193 |
|
118 194 | pub(crate) mod shape_auto_tool_choice;
|
119 195 |
|
196 + | pub(crate) mod shape_citations_content_block;
|
197 + |
|
120 198 | pub(crate) mod shape_content_blocks;
|
121 199 |
|
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 + |
|
122 224 | pub(crate) mod shape_image_block;
|
123 225 |
|
226 + | pub(crate) mod shape_model_outputs;
|
227 + |
|
228 + | pub(crate) mod shape_reasoning_content_block;
|
229 + |
|
124 230 | pub(crate) mod shape_specific_tool_choice;
|
125 231 |
|
126 232 | pub(crate) mod shape_tool_result_block;
|
127 233 |
|
128 234 | pub(crate) mod shape_tool_specification;
|
129 235 |
|
130 236 | pub(crate) mod shape_tool_use_block;
|
131 237 |
|
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 + |
|
132 246 | pub(crate) mod shape_content_block_delta;
|
133 247 |
|
134 248 | pub(crate) mod shape_content_block_start;
|
135 249 |
|
136 250 | pub(crate) mod shape_converse_stream_metrics;
|
137 251 |
|
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 + |
|
138 272 | pub(crate) mod shape_image_source;
|
139 273 |
|
274 + | pub(crate) mod shape_reasoning_text_block;
|
275 + |
|
140 276 | pub(crate) mod shape_tool_input_schema;
|
141 277 |
|
142 278 | pub(crate) mod shape_tool_result_content_block;
|
143 279 |
|
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 + |
|
144 308 | pub(crate) mod shape_tool_use_block_delta;
|
145 309 |
|
146 310 | pub(crate) mod shape_tool_use_block_start;
|
147 311 |
|
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 + |
|
148 324 | 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;
|