Added the exact token count to chats which offer tools

This commit is contained in:
Thorsten Sommer committed 2026-09-23 18:58:23 +02:00
1 parent 3277f20f60
commit ffc6536ce3
8 files changed
+198 -17

No files matched your search

@@ -88,8 +88,8 @@ public sealed class ChatThreadReportedHistoryTests
public void AnAnswerWithoutAReportDoesNotBorrowTheReportBeforeIt()
{
//
// What an answer written while tools were offered looks like today: finished, but without
// a report of its own.
// What an answer looks like whose provider reports nothing, or whose API is not read for a
// report yet: finished, but without a report of its own.
//
var withoutReport = Block(ChatRole.AI, new ContentText { Text = "Second answer" }, 4);
var thread = Thread(Question(1), Answer(2, promptTokens: 1200, blockCount: 2), Question(3), withoutReport);