kshitijk4poor
43de1ca8c2
refactor: remove _nr_to_assistant_message shim + fix flush_memories guard
...
NormalizedResponse and ToolCall now have backward-compat properties
so the agent loop can read them directly without the shim:
ToolCall: .type, .function (returns self), .call_id, .response_item_id
NormalizedResponse: .reasoning_content, .reasoning_details,
.codex_reasoning_items
This eliminates the 35-line shim and its 4 call sites in run_agent.py.
Also changes flush_memories guard from hasattr(response, 'choices')
to self.api_mode in ('chat_completions', 'bedrock_converse') so it
works with raw boto3 dicts too.
WS1 items 3+4 of Cycle 2 (#14418 ).
2026-04-23 02:30:05 -07:00
..
2026-04-07 17:19:07 -07:00
2026-04-17 14:21:22 -07:00
2026-04-17 14:21:22 -07:00
2026-04-17 12:32:03 -07:00
2026-04-17 12:32:03 -07:00
2026-04-10 13:38:14 -07:00
2026-04-07 17:19:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-19 11:23:00 -07:00
2026-04-21 06:40:58 -07:00
2026-04-19 22:43:09 -07:00
2026-04-23 02:30:05 -07:00
2026-04-15 13:16:28 -07:00
2026-04-07 17:19:07 -07:00
2026-04-20 00:56:04 -07:00
2026-04-17 12:32:03 -07:00
2026-04-20 05:12:10 -07:00
2026-04-07 17:19:07 -07:00
2026-04-19 12:39:58 -07:00
2026-04-19 11:23:00 -07:00
2026-04-17 12:32:03 -07:00
2026-04-21 05:52:46 -07:00
2026-04-17 12:32:03 -07:00
2026-04-13 10:50:24 -07:00
2026-04-17 14:21:22 -07:00
2026-04-17 14:21:22 -07:00
2026-04-08 18:55:33 -07:00
2026-04-07 17:19:07 -07:00
2026-04-20 23:20:33 -07:00
2026-04-15 22:05:21 -07:00
2026-04-07 17:19:07 -07:00
2026-04-18 22:50:55 -07:00
2026-04-07 17:19:07 -07:00
2026-04-10 03:44:43 -07:00
2026-04-17 12:32:03 -07:00
2026-04-10 03:21:24 -07:00
2026-04-20 21:02:28 -07:00
2026-04-22 14:42:48 -07:00
2026-04-21 19:48:56 -07:00
2026-04-13 10:50:24 -07:00
2026-04-07 17:19:07 -07:00
2026-04-20 05:12:55 -07:00
2026-04-21 19:48:56 -07:00
2026-04-22 18:34:25 -07:00
2026-04-22 18:12:42 -07:00
2026-04-16 16:36:33 -07:00
2026-04-07 17:19:07 -07:00
2026-04-07 17:19:07 -07:00
2026-04-20 22:18:49 -07:00
2026-04-22 13:47:33 -07:00
2026-04-07 17:19:07 -07:00
2026-04-22 18:12:42 -07:00
2026-04-10 05:52:45 -07:00
2026-04-21 14:31:47 -05:00
2026-04-17 12:32:03 -07:00
2026-04-07 17:19:07 -07:00
2026-04-15 15:03:28 -07:00