Commit 0dbac63
docs: clarify BedrockResponse.is_json() always returns True (#7748)
Addresses #7692
- Added comprehensive docstring to BedrockResponse.is_json() explaining
why it always returns True regardless of content_type parameter
- Updated BedrockResponse class docstring with note about Bedrock Agents
only supporting TEXT content type
- Added tip in bedrock_agents.md documentation to clarify content_type
behavior for users
- Included AWS documentation reference for context
The content_type parameter is maintained for API consistency but does not
affect the actual response format sent to Bedrock Agents, as they only
support TEXT content type per AWS Lambda integration docs.
Co-authored-by: Leandro Damascena <lcdama@amazon.pt>1 parent 7f5e991 commit 0dbac63
File tree
2 files changed
+26
-0
lines changed- aws_lambda_powertools/event_handler
- docs/core/event_handler
2 files changed
+26
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
264 | 273 | | |
265 | 274 | | |
266 | 275 | | |
| |||
282 | 291 | | |
283 | 292 | | |
284 | 293 | | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
285 | 306 | | |
286 | 307 | | |
287 | 308 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
336 | 341 | | |
337 | 342 | | |
338 | 343 | | |
| |||
0 commit comments