feat(agent): Implement recursion limit handling and emergency synthesis for search process
This commit is contained in:
parent
18fdb192d8
commit
1e40244183
13 changed files with 249 additions and 70 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue