mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Display the pipeline on the agent canvas #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
11 lines
281 B
TypeScript
11 lines
281 B
TypeScript
import { AgentCategory, AgentQuery } from '@/constants/agent';
|
|
import { useSearchParams } from 'umi';
|
|
|
|
export function useIsPipeline() {
|
|
const [queryParameters] = useSearchParams();
|
|
|
|
return (
|
|
queryParameters.get(AgentQuery.Category) === AgentCategory.DataflowCanvas
|
|
);
|
|
}
|