Feat: Add agent page. #3221 (#5179)

### What problem does this PR solve?

Feat: Add agent page. #3221

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-02-20 15:02:53 +08:00
committed by GitHub
parent f52970b038
commit 84bcd8b3bc
6 changed files with 128 additions and 5 deletions

View File

@ -38,6 +38,14 @@ export const useNavigatePage = () => {
navigate(Routes.Chat);
}, [navigate]);
const navigateToAgentList = useCallback(() => {
navigate(Routes.Agents);
}, [navigate]);
const navigateToAgent = useCallback(() => {
navigate(Routes.Agent);
}, [navigate]);
const navigateToChunkParsedResult = useCallback(
(id: string, knowledgeId?: string) => () => {
navigate(
@ -81,5 +89,7 @@ export const useNavigatePage = () => {
navigateToChunkParsedResult,
getQueryString,
navigateToChunk,
navigateToAgentList,
navigateToAgent,
};
};