This repository has been archived by the owner on Jun 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructure library, deprecate challenges
- Loading branch information
1 parent
b263cab
commit 4dbf271
Showing
252 changed files
with
866 additions
and
246 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 0 additions & 21 deletions
21
agbenchmark/challenges/code/c9_realistic_suite/10_url_shortener/data_draft.json
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
agbenchmark/challenges/code/c9_realistic_suite/1_currency_converter/data_draft.json
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
agbenchmark/challenges/code/c9_realistic_suite/2_file_explorer/data_draft.json
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
agbenchmark/challenges/code/c9_realistic_suite/3_file_organizer/data_draft.json
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
agbenchmark/challenges/code/c9_realistic_suite/4_image_resizer/data_draft.json
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
agbenchmark/challenges/code/c9_realistic_suite/5_markdown_editor/data_draft.json
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
agbenchmark/challenges/code/c9_realistic_suite/6_password_generator/data_draft.json
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
agbenchmark/challenges/code/c9_realistic_suite/7_pomodoro_timer/data_draft.json
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
agbenchmark/challenges/code/c9_realistic_suite/8_timer_app/data_draft.json
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
agbenchmark/challenges/code/c9_realistic_suite/9_todo_list/data_draft.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
17 changes: 17 additions & 0 deletions
17
...enges/deprecated/interface/agent_protocol_suite/1_create_agent_task/custom_python/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import subprocess | ||
import sys | ||
|
||
|
||
def call_agent_protocol() -> None: | ||
command = ( | ||
"poetry run agent-protocol test --url=http://127.0.0.1:8000 -k test_create_agent_task" | ||
) | ||
try: | ||
result = subprocess.run(command, shell=True, check=True) | ||
sys.exit(result.returncode) | ||
except subprocess.CalledProcessError as e: | ||
sys.exit(e.returncode) | ||
|
||
|
||
if __name__ == "__main__": | ||
call_agent_protocol() |
21 changes: 21 additions & 0 deletions
21
...chmark/challenges/deprecated/interface/agent_protocol_suite/1_create_agent_task/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "TestAgentProtocol_CreateAgentTask", | ||
"category": ["interface"], | ||
"task": "", | ||
"dependencies": [], | ||
"cutoff": 60, | ||
"ground": { | ||
"answer": "The agent should be able to create a task.", | ||
"should_contain": [], | ||
"should_not_contain": [], | ||
"files": ["test.py"], | ||
"eval": { | ||
"type": "python" | ||
} | ||
}, | ||
"info": { | ||
"difficulty": "interface", | ||
"description": "Tests the agent's ability to create a task", | ||
"side_effects": [""] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...es/deprecated/interface/agent_protocol_suite/2_list_agent_tasks_ids/custom_python/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# mypy: ignore-errors | ||
|
||
import subprocess | ||
|
||
|
||
def call_agent_protocol() -> None: | ||
command = ( | ||
"poetry run agent-protocol test --url=http://127.0.0.1:8000 -k test_list_agent_tasks_ids" | ||
) | ||
subprocess.run(command, shell=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
call_agent_protocol() |
21 changes: 21 additions & 0 deletions
21
...ark/challenges/deprecated/interface/agent_protocol_suite/2_list_agent_tasks_ids/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "TestAgentProtocol_ListAgentTasksIds", | ||
"category": ["interface"], | ||
"task": "", | ||
"dependencies": ["TestAgentProtocol_CreateAgentTask"], | ||
"cutoff": 60, | ||
"ground": { | ||
"answer": "The agent should be able to list agent tasks ids.", | ||
"should_contain": [], | ||
"should_not_contain": [], | ||
"files": ["test.py"], | ||
"eval": { | ||
"type": "python" | ||
} | ||
}, | ||
"info": { | ||
"difficulty": "interface", | ||
"description": "Tests the agent's ability to list agent tasks ids.", | ||
"side_effects": [""] | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...allenges/deprecated/interface/agent_protocol_suite/3_get_agent_task/custom_python/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# mypy: ignore-errors | ||
|
||
import subprocess | ||
|
||
|
||
def call_agent_protocol() -> None: | ||
command = "poetry run agent-protocol test --url=http://127.0.0.1:8000 -k test_get_agent_task" | ||
subprocess.run(command, shell=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
call_agent_protocol() |
21 changes: 21 additions & 0 deletions
21
agbenchmark/challenges/deprecated/interface/agent_protocol_suite/3_get_agent_task/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "TestAgentProtocol_GetAgentTask", | ||
"category": ["interface"], | ||
"task": "", | ||
"dependencies": ["TestAgentProtocol_ListAgentTasksIds"], | ||
"cutoff": 60, | ||
"ground": { | ||
"answer": "The agent should be able to get a task.", | ||
"should_contain": [], | ||
"should_not_contain": [], | ||
"files": ["test.py"], | ||
"eval": { | ||
"type": "python" | ||
} | ||
}, | ||
"info": { | ||
"difficulty": "interface", | ||
"description": "Tests the agent's ability to get a task", | ||
"side_effects": [""] | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
.../deprecated/interface/agent_protocol_suite/4_list_agent_tasks_steps/custom_python/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# mypy: ignore-errors | ||
|
||
import subprocess | ||
|
||
|
||
def call_agent_protocol() -> None: | ||
command = ( | ||
"poetry run agent-protocol test --url=http://127.0.0.1:8000 -k test_list_agent_task_steps" | ||
) | ||
subprocess.run(command, shell=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
call_agent_protocol() |
21 changes: 21 additions & 0 deletions
21
...k/challenges/deprecated/interface/agent_protocol_suite/4_list_agent_tasks_steps/data.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "TestAgentProtocol_ListAgentTaskSteps", | ||
"category": ["interface"], | ||
"task": "", | ||
"dependencies": ["TestAgentProtocol_GetAgentTask"], | ||
"cutoff": 60, | ||
"ground": { | ||
"answer": "The agent should be able to list the steps an agent took during his task.", | ||
"should_contain": [], | ||
"should_not_contain": [], | ||
"files": ["test.py"], | ||
"eval": { | ||
"type": "python" | ||
} | ||
}, | ||
"info": { | ||
"difficulty": "interface", | ||
"description": "Tests the agent's ability to to list the steps an agent took during his task", | ||
"side_effects": [""] | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...deprecated/interface/agent_protocol_suite/5_execute_agent_task_step/custom_python/test.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# mypy: ignore-errors | ||
|
||
import subprocess | ||
|
||
|
||
def call_agent_protocol() -> None: | ||
command = "poetry run agent-protocol test --url=http://127.0.0.1:8000 -k test_execute_agent_task_step" | ||
subprocess.run(command, shell=True) | ||
|
||
|
||
if __name__ == "__main__": | ||
call_agent_protocol() |
Oops, something went wrong.