agentLog.ts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // @ts-ignore
  2. /* eslint-disable */
  3. import request from '@repo/api-client'
  4. /** 获取智能体运行日志分页列表 POST /api/agent/getAgentRunnerPageList */
  5. export async function postAgentGetAgentRunnerPageList(
  6. body: {
  7. keyword: string
  8. status: string
  9. source: string
  10. pageIndex: number
  11. pageSize: number
  12. },
  13. options?: { [key: string]: any }
  14. ) {
  15. return request<{
  16. isSuccess: boolean
  17. code: number
  18. result: {
  19. currentPage: number
  20. hasNextPage: boolean
  21. hasPreviousPage: boolean
  22. model: {
  23. agentName?: string
  24. beginDate?: string
  25. endDate?: string
  26. runnerId?: string
  27. status?: string
  28. useTime?: number
  29. }[]
  30. pageSize: number
  31. totalCount: number
  32. totalPages: number
  33. }
  34. isAuthorized: boolean
  35. }>('/api/agent/getAgentRunnerPageList', {
  36. method: 'POST',
  37. headers: {
  38. 'Content-Type': 'application/json'
  39. },
  40. data: body,
  41. ...(options || {})
  42. })
  43. }
  44. /** 获取7天前的智能体运行状态 POST /api/agent/getBefore7DayAgentRunnerStatic */
  45. export async function postAgentGetBefore7DayAgentRunnerStatic(
  46. body: {},
  47. options?: { [key: string]: any }
  48. ) {
  49. return request<{
  50. isSuccess: boolean
  51. code: number
  52. result: {
  53. avg_elapsed_sec: string
  54. error_total: number
  55. process_total: number
  56. run_total: number
  57. success_total: number
  58. }
  59. isAuthorized: boolean
  60. }>('/api/agent/getBefore7DayAgentRunnerStatic', {
  61. method: 'POST',
  62. headers: {
  63. 'Content-Type': 'application/json'
  64. },
  65. data: body,
  66. ...(options || {})
  67. })
  68. }