mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user