Elliot Slusky
420908401c
fix(engine): count tool call payloads in token estimates ( #614 )
...
Closes #608 . Make Message.content officially Optional (str | None) with a Message.text accessor that treats None as empty, and count tool-call IDs/names/arguments, tool-result IDs, and reasoning/thinking metadata in estimate_prompt_tokens — all are replayed into later prompt turns, so they belong in the estimate. Extends estimator and message-type regression tests.
2026-06-29 17:34:10 -07:00
..
2026-05-25 23:51:29 +00:00
2026-06-29 16:51:52 -07:00
2026-05-27 09:36:26 -07:00
2026-03-20 18:35:18 -07:00
2026-06-10 14:10:06 -07:00
2026-06-24 19:58:49 -07:00
2026-06-14 19:55:22 -07:00
2026-06-29 17:34:10 -07:00
2026-03-17 00:13:49 +00:00
2026-05-25 23:56:55 +00:00
2026-06-27 15:49:18 -07:00
2026-06-29 17:34:10 -07:00
2026-06-11 14:30:10 -07:00
2026-04-17 15:22:17 -07:00
2026-05-20 03:36:55 +00:00
2026-06-03 16:59:29 -07:00
2026-03-20 18:35:18 -07:00
2026-04-13 15:03:03 -07:00
2026-06-10 11:48:57 -07:00
2026-06-03 18:27:00 -07:00
2026-06-24 19:58:49 -07:00
2026-05-14 20:11:24 -07:00
2026-04-17 11:02:56 -07:00
2026-05-14 20:11:24 -07:00
2026-06-24 19:58:49 -07:00
2026-03-20 18:35:18 -07:00
2026-03-20 18:35:18 -07:00
2026-04-03 11:05:41 -07:00
2026-06-11 13:49:37 -07:00
2026-06-01 11:57:44 -07:00
2026-06-24 19:58:49 -07:00
2026-03-31 19:25:29 +05:30
2026-04-13 15:03:39 -07:00
2026-06-20 17:08:24 -07:00
2026-06-04 16:59:24 -07:00
2026-03-20 18:35:18 -07:00
2026-06-10 11:48:57 -07:00
2026-06-18 13:40:06 -07:00
2026-04-01 21:06:20 -07:00
2026-03-20 18:35:18 -07:00
2026-03-12 17:29:39 +00:00
2026-06-24 19:58:49 -07:00
2026-04-03 11:05:41 -07:00
2026-04-17 11:02:56 -07:00
2026-06-14 18:19:00 -07:00