polyhistor
a7e911150c
fix(bedrock): address review — route list-string items through _safe_text, update stale placeholder assertions
...
Addresses hermes-sweeper review on PR #66167 :
1. _convert_content_to_converse() still emitted {"text": part} directly
for plain-string items inside a content list (as opposed to
{"type": "text"} dicts), bypassing _safe_text() entirely. A
whitespace-only string item (e.g. [" "]) could still reach Bedrock
as a blank block. Now routed through _safe_text().
2. tests/agent/test_bedrock_adapter.py::TestEmptyTextBlockFix asserted
the pre-fix behavior (whitespace -> literal space " "), contradicting
the new _safe_text()/_EMPTY_TEXT_PLACEHOLDER behavior added in
4618095a. Updated assertions to expect the non-whitespace placeholder,
plus added a regression test for the list-string-item case above.
2026-07-20 03:27:38 -07:00
..
2026-07-17 13:48:41 -07:00
2026-07-14 03:23:19 -07:00
2026-07-19 12:21:59 -07:00
2026-07-19 01:53:01 -07:00
2026-07-04 15:16:13 +05:30
2026-07-19 08:25:35 +05:30
2026-07-06 12:46:20 -07:00
2026-07-04 15:44:50 -07:00
2026-07-15 07:47:18 -07:00
2026-07-02 04:51:56 +05:30
2026-07-16 04:23:12 -07:00
2026-07-16 04:23:12 -07:00
2026-07-06 12:46:20 -07:00
2026-07-05 19:23:26 -07:00
2026-07-17 09:08:30 -07:00
2026-07-02 01:09:37 -07:00
2026-07-20 03:27:38 -07:00
2026-07-20 03:27:38 -07:00
2026-07-08 01:51:05 +05:30
2026-07-18 19:38:21 +05:30
2026-07-18 14:30:24 +05:30
2026-07-18 14:30:24 +05:30
2026-07-05 14:00:20 -07:00
2026-07-18 21:20:48 -04:00
2026-07-17 06:49:47 -07:00
2026-07-06 12:46:20 -07:00
2026-07-15 09:47:37 -07:00
2026-07-17 13:44:12 -07:00
2026-07-17 04:46:59 -07:00
2026-07-14 02:19:40 +05:30
2026-07-11 22:59:49 +05:30
2026-07-20 02:25:57 -07:00
2026-07-15 12:28:09 -07:00
2026-07-19 13:16:52 +05:30
2026-07-08 11:56:17 -07:00
2026-07-01 18:23:01 +05:30
2026-07-15 09:47:04 -07:00
2026-07-20 11:58:50 +05:30
2026-07-05 21:42:19 +05:30
2026-07-20 02:25:57 -07:00
2026-07-19 08:55:08 +05:30
2026-07-14 02:19:40 +05:30
2026-07-14 17:09:40 +05:30
2026-07-17 13:08:46 -04:00
2026-07-13 23:20:48 +05:30
2026-07-16 06:14:56 -07:00
2026-07-12 03:00:53 -07:00
2026-07-17 11:37:25 +05:30
2026-07-17 11:37:25 +05:30
2026-07-18 14:30:24 +05:30
2026-07-18 14:30:24 +05:30
2026-07-11 11:07:34 +05:30
2026-07-18 02:31:20 -07:00
2026-07-05 13:42:46 -07:00
2026-07-10 18:32:32 +05:30
2026-07-12 23:30:52 -07:00
2026-07-10 19:14:06 +05:30
2026-07-18 12:28:59 -07:00
2026-07-17 06:48:42 -07:00
2026-07-18 12:54:58 -07:00
2026-07-16 00:18:38 -07:00
2026-07-17 05:45:12 -07:00
2026-07-19 14:58:59 +05:30
2026-07-05 13:44:33 -07:00
2026-07-13 22:26:19 -07:00
2026-07-17 04:54:06 -07:00
2026-07-05 03:15:03 -07:00
2026-07-11 05:59:42 -07:00
2026-07-14 16:47:33 +05:30
2026-07-19 12:21:59 -07:00
2026-07-01 16:25:48 -05:00
2026-07-16 07:57:51 -07:00
2026-07-16 14:34:03 +05:30
2026-07-05 13:42:46 -07:00
2026-07-17 04:55:58 -07:00
2026-07-09 03:21:54 +05:30
2026-07-16 12:48:48 -07:00
2026-07-20 02:25:44 -07:00
2026-07-04 20:59:02 +05:30
2026-07-01 06:02:33 -07:00
2026-07-15 00:11:04 -07:00
2026-07-09 14:08:44 +05:30
2026-07-16 13:33:02 -07:00
2026-07-02 17:05:05 +05:30
2026-07-09 21:10:07 -07:00
2026-07-18 14:30:24 +05:30
2026-07-08 06:18:18 -07:00
2026-07-16 01:13:43 -07:00
2026-07-20 02:25:57 -07:00
2026-07-09 14:08:44 +05:30
2026-07-18 02:31:20 -07:00
2026-07-09 14:35:14 +05:30
2026-07-10 05:41:59 -05:00
2026-07-19 16:32:20 -07:00
2026-07-20 02:25:57 -07:00
2026-07-11 05:41:58 -07:00
2026-07-16 04:32:23 -07:00
2026-07-16 07:28:07 -07:00
2026-07-05 14:48:11 -07:00
2026-07-14 16:41:21 +05:30
2026-07-17 04:52:02 -07:00
2026-07-02 04:51:56 +05:30
2026-07-17 18:31:09 +00:00
2026-07-18 14:30:24 +05:30
2026-07-15 00:10:22 -07:00
2026-07-17 06:49:42 -07:00
2026-07-16 04:32:23 -07:00
2026-07-16 01:07:29 +05:30
2026-07-17 20:55:24 +00:00
2026-07-17 20:55:24 +00:00
2026-07-11 05:41:58 -07:00
2026-07-18 02:08:39 -07:00
2026-07-11 05:41:58 -07:00
2026-07-07 15:12:49 -07:00
2026-07-14 02:59:39 +05:30
2026-07-17 09:08:30 -07:00
2026-07-19 07:27:10 +05:30
2026-07-10 11:53:58 +05:30
2026-07-19 01:09:29 -07:00
2026-07-16 04:23:12 -07:00
2026-07-16 04:23:12 -07:00
2026-07-20 03:27:16 -07:00
2026-07-12 04:32:52 -07:00
2026-07-02 06:07:56 +05:30
2026-07-14 02:59:39 +05:30