fix: pass $emit into synthesiseBvj so dbn-legal-agent keepalives fire
This commit is contained in:
@@ -359,7 +359,8 @@ final class DbnBvjAnalyzerAgent
|
|||||||
$synthesis = $this->synthesiseBvj(
|
$synthesis = $this->synthesiseBvj(
|
||||||
$docText, $docMeta, $parties, $timelineEvents,
|
$docText, $docMeta, $parties, $timelineEvents,
|
||||||
$subQuestions, $numberedSources,
|
$subQuestions, $numberedSources,
|
||||||
$advocateRole, $engine, $language, $controls['temperature'], $additionalNotes
|
$advocateRole, $engine, $language, $controls['temperature'], $additionalNotes,
|
||||||
|
$emit
|
||||||
);
|
);
|
||||||
$this->stepTimings['synthesis'] = $this->elapsedMs($stepStart);
|
$this->stepTimings['synthesis'] = $this->elapsedMs($stepStart);
|
||||||
$emitStep('synthesis', 'Synthesis',
|
$emitStep('synthesis', 'Synthesis',
|
||||||
@@ -685,17 +686,18 @@ PROMPT;
|
|||||||
// ── Step 6: Synthesis ─────────────────────────────────────────────────────
|
// ── Step 6: Synthesis ─────────────────────────────────────────────────────
|
||||||
|
|
||||||
private function synthesiseBvj(
|
private function synthesiseBvj(
|
||||||
string $docText,
|
string $docText,
|
||||||
array $docMeta,
|
array $docMeta,
|
||||||
array $parties,
|
array $parties,
|
||||||
array $timelineEvents,
|
array $timelineEvents,
|
||||||
array $subQuestions,
|
array $subQuestions,
|
||||||
array $numberedSources,
|
array $numberedSources,
|
||||||
string $advocateRole,
|
string $advocateRole,
|
||||||
string $engine,
|
string $engine,
|
||||||
string $language,
|
string $language,
|
||||||
float $temperature,
|
float $temperature,
|
||||||
string $additionalNotes
|
string $additionalNotes,
|
||||||
|
?callable $emit = null
|
||||||
): array {
|
): array {
|
||||||
$locale = $language === 'no' ? 'Norwegian' : 'English';
|
$locale = $language === 'no' ? 'Norwegian' : 'English';
|
||||||
$roleStr = $advocateRole !== '' ? $advocateRole : 'the affected party';
|
$roleStr = $advocateRole !== '' ? $advocateRole : 'the affected party';
|
||||||
|
|||||||
Reference in New Issue
Block a user