File size: 439 Bytes
148efff
c492c3f
 
148efff
 
 
c492c3f
 
148efff
c492c3f
 
148efff
c492c3f
 
148efff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import apiClient from './apiClient'

export const runAgent  = (taskId, seed = null) =>
  apiClient
    .post('/agent/run', seed != null ? { task_id: taskId, seed } : { task_id: taskId })
    .then(r => r.data)

export const getState  = () =>
  apiClient.get('/state').then(r => r.data)

export const getTasks  = () =>
  apiClient.get('/tasks').then(r => r.data)

export const getHealth = () =>
  apiClient.get('/health').then(r => r.data)