feat: supports multiple retrieval tool under an agent (#12046)

### What problem does this PR solve?

Add support for multiple Retrieval tools under an agent

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
Jimmy Ben Klieve
2025-12-22 09:35:34 +08:00
committed by GitHub
parent 3ee47e4af7
commit 47005ebe10
20 changed files with 442 additions and 226 deletions

View File

@ -120,13 +120,17 @@ function buildAgentTools(edges: Edge[], nodes: Node[], nodeId: string) {
return {
component_name: Operator.Agent,
id,
name: name as string, // Cast name to string and provide fallback
name,
params: { ...formData },
};
}),
);
}
return { params, name: node?.data.name, id: node?.id };
return { params, name: node?.data.name, id: node?.id } as {
params: IAgentForm;
name: string;
id: string;
};
}
function filterTargetsBySourceHandleId(edges: Edge[], handleId: string) {