deepseek wip

This commit is contained in:
2026-07-07 11:03:44 +02:00
parent 645189f21c
commit 00c67dd66a
9 changed files with 904 additions and 40 deletions
+5 -1
View File
@@ -62,6 +62,7 @@ namespace AnotherReplayReader
private CancellationTokenSource? _linkedCts;
private AIAnalyze? _analyzer;
private TimeIndexedPrefixSums? _eventCounts;
private ReplayFactIndex? _factIndex;
// 分析状态
private bool _isRunning;
@@ -165,6 +166,7 @@ namespace AnotherReplayReader
_blockCountBeforeSegment = 0;
_analyzer = null;
_eventCounts = null;
_factIndex = null;
_document.Blocks.Clear();
_updateCurrentThinkingSection = null;
@@ -198,6 +200,7 @@ namespace AnotherReplayReader
ImmutableSortedDictionary<int, Player> players,
string replayData,
TimeIndexedPrefixSums eventCounts,
ReplayFactIndex factIndex,
CancellationToken externalToken)
{
if (_isRunning)
@@ -245,6 +248,7 @@ namespace AnotherReplayReader
_analyzer = new AIAnalyze();
_eventCounts = eventCounts;
_factIndex = factIndex;
FinishCurrentContent();
var requestContext = GetRequestContext();
@@ -359,7 +363,7 @@ namespace AnotherReplayReader
requestContext,
OnChunk,
_linkedCts.Token);
var validationResult = AIAnalysisValidation.ValidateMachineReadableClaims(segmentResult.Response);
var validationResult = AIAnalysisValidation.ValidateMachineReadableClaims(segmentResult.Response, _factIndex);
if (validationResult.HasIssues)
{
AppendLog(