Files
syops/frontend/src/features/chat/api/toolRunProgress.api.ts
T

13 lines
538 B
TypeScript

/**
* features/chat/api/toolRunProgress.api.ts
* 工具运行进度查询 API(Chat 输入栏进度卡片轮询)。
*/
import { requestJson } from '@/shared/api/client';
import { getAuthHeaders } from '@/shared/utils/auth';
import type { ToolRunProgressResponse } from '../types/tool-run-progress.types';
export type { ToolRunProgress, ToolRunProgressResponse } from '../types/tool-run-progress.types';
export const getToolRunProgress = (url: string) =>
requestJson<ToolRunProgressResponse>(url, { headers: getAuthHeaders() });