[AI] Improve tools tab (#19221)
This commit is contained in:
@@ -1,16 +1,7 @@
|
||||
import { GET_TOOL_INDEX } from '@/ai/graphql/queries/getToolIndex';
|
||||
import { useQuery } from '@apollo/client/react';
|
||||
|
||||
type ToolIndexEntry = {
|
||||
name: string;
|
||||
description: string;
|
||||
category: string;
|
||||
objectName?: string;
|
||||
};
|
||||
|
||||
type GetToolIndexQuery = {
|
||||
getToolIndex: ToolIndexEntry[];
|
||||
};
|
||||
import { type GetToolIndexQuery } from '~/generated-metadata/graphql';
|
||||
|
||||
export const useGetToolIndex = () => {
|
||||
const { data, loading, error } = useQuery<GetToolIndexQuery>(GET_TOOL_INDEX);
|
||||
|
||||
Reference in New Issue
Block a user