mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Deleting the last tool of the agent will delete the tool node #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,7 +1,20 @@
|
||||
import { INextOperatorForm } from '../../interface';
|
||||
import useGraphStore from '../../store';
|
||||
import { ToolFormConfigMap } from './constant';
|
||||
|
||||
const ToolForm = ({ node }: INextOperatorForm) => {
|
||||
return <section>xxx</section>;
|
||||
const EmptyContent = () => <div></div>;
|
||||
|
||||
const ToolForm = () => {
|
||||
const clickedToolId = useGraphStore((state) => state.clickedToolId);
|
||||
|
||||
const ToolForm =
|
||||
ToolFormConfigMap[clickedToolId as keyof typeof ToolFormConfigMap] ??
|
||||
EmptyContent;
|
||||
|
||||
return (
|
||||
<section>
|
||||
<ToolForm key={clickedToolId}></ToolForm>
|
||||
</section>
|
||||
);
|
||||
};
|
||||
|
||||
export default ToolForm;
|
||||
|
||||
Reference in New Issue
Block a user