Add eval_id and sync Skill Tree with Frontend(#5287)

Add eval_id to skill tree

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
merwanehamadi
2023-09-21 13:36:17 -07:00
committed by GitHub
parent 295787c948
commit f4e7b1c61c
63 changed files with 2010 additions and 792 deletions

View File

@@ -61,19 +61,6 @@ def test_entire_workflow(
step_response = step_response.json()
assert step_response["is_last"] == True # Assuming is_last is always True
step_response = requests.post(
URL_BENCHMARK + "/agent/tasks/" + task_response_benchmark_id + "/evaluation",
json={},
)
step_response = requests.post(
URL_BENCHMARK + "/agent/tasks/" + task_response_benchmark_id + "/steps",
json=step_request,
)
assert step_response.status_code == 200
step_response = step_response.json()
assert step_response["is_last"] == True # Assuming is_last is always True
eval_response = requests.post(
URL_BENCHMARK + "/agent/tasks/" + task_response_benchmark_id + "/evaluations",
json={},
@@ -87,7 +74,5 @@ def test_entire_workflow(
benchmark_start_time = datetime.datetime.fromisoformat(
eval_response["run_details"]["benchmark_start_time"]
)
print(benchmark_start_time, timestamp_after_task_eval_created)
test = timestamp_after_task_eval_created - benchmark_start_time
print(test)
assert benchmark_start_time < timestamp_after_task_eval_created