mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-25 16:26:51 +08:00
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:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user