feat(agent): Implement recursion limit handling and emergency synthesis for search process

This commit is contained in:
Willie Zutz 2025-07-13 13:20:16 -06:00
parent 18fdb192d8
commit 1e40244183
13 changed files with 249 additions and 70 deletions

View file

@ -142,9 +142,13 @@ export class TaskManagerAgent {
});
// Use structured output for task breakdown
const structuredLlm = withStructuredOutput(this.llm, TaskBreakdownSchema, {
name: 'break_down_tasks',
});
const structuredLlm = withStructuredOutput(
this.llm,
TaskBreakdownSchema,
{
name: 'break_down_tasks',
},
);
const taskBreakdownResult = (await structuredLlm.invoke([prompt], {
signal: this.signal,