Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
restructure library, deprecate challenges
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenNaihin authored and waynehamadi committed Aug 31, 2023
1 parent b263cab commit 4dbf271
Show file tree
Hide file tree
Showing 252 changed files with 866 additions and 246 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

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()
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": [""]
}
}
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()
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": [""]
}
}
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()
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": [""]
}
}
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()
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": [""]
}
}
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()
Loading

0 comments on commit 4dbf271

Please sign in to comment.