-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ghost coder is now working, agent protocol running
now you can run : ` sudo docker-compose up -d mockopenai ghostcoder ` ` sudo docker-compose logs -f mockopenai ghostcoder &` ` sudo docker-compose run arena`
- Loading branch information
mike dupont
committed
Oct 19, 2023
1 parent
cf5fdd2
commit a7712e6
Showing
14 changed files
with
120 additions
and
6 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1 +1,7 @@ | ||
from debian | ||
from h4ckermike/act_base | ||
add vendor/agent-protocol-client-python/ /opt/agent-protocol | ||
add vendor/agent-protocol-sdk-python/ /opt/agent-protocol-sdk | ||
add arena/agent.json /tmp/ | ||
add arena/run.py /tmp/ | ||
RUN pip install /opt/agent-protocol | ||
RUN pip install /opt/agent-protocol-sdk |
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,6 @@ | ||
{ | ||
"input":"Write hello", | ||
"additional_input":{ | ||
"test_run_id": "123" | ||
} | ||
} |
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,47 @@ | ||
import asyncio | ||
|
||
from agent_protocol.models import StepRequestBody | ||
from agent_protocol_client import ( | ||
Configuration, | ||
ApiClient, | ||
StepRequestBody, | ||
TaskRequestBody, | ||
AgentApi, | ||
) | ||
|
||
# Defining the host is optional and defaults to http://localhost | ||
# See configuration.py for a list of all supported configuration parameters. | ||
configuration = Configuration(host="http://ghostcoder:8000") | ||
|
||
|
||
async def main(): | ||
# Enter a context with an instance of the API client | ||
async with ApiClient(configuration) as api_client: | ||
# Create an instance of the API class | ||
api_instance = AgentApi(api_client) | ||
task_request_body = TaskRequestBody(input="Write 'Hello world!' to hi.txt.") | ||
|
||
response = await api_instance.create_agent_task( | ||
task_request_body=task_request_body | ||
) | ||
print("The response of AgentApi->create_agent_task:\n") | ||
print(response) | ||
print("\n\n") | ||
|
||
task_id = response.task_id | ||
i = 1 | ||
|
||
while ( | ||
step := await api_instance.execute_agent_task_step( | ||
task_id=task_id, step_request_body=StepRequestBody(input=str(i)) | ||
) | ||
) and step.is_last is False: | ||
print("The response of AgentApi->execute_agent_task_step:\n") | ||
print(step) | ||
print("\n\n") | ||
i += 1 | ||
|
||
print("Agent finished its work!") | ||
|
||
|
||
asyncio.run(main()) |
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,6 @@ | ||
{ | ||
"input":"Write hello", | ||
"additional_input":{ | ||
"test_run_id": "123" | ||
} | ||
} |
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
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 @@ | ||
|
Submodule agent-protocol-client-python
added at
a9006c
Submodule agent-protocol-sdk-python
added at
8ba4c9
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,10 @@ | ||
git submodule add https://github.com/jinho-kim-osd/osGPT | ||
git submodule add https://github.com/bsenst/FritzGPT | ||
git submodule add https://github.com/murnanedaniel/Asimov | ||
git submodule add https://github.com/polywrap/evo.ninja | ||
git submodule add https://github.com/cluna80/Mutant-AI | ||
git submodule add https://github.com/gordonwilliamsburg/test gordonwilliamsburg | ||
git submodule add https://github.com/joslangarica/AutoGPT joslangarica | ||
git submodule add https://github.com/isayahc/AutoGPT isayahc | ||
git submodule add https://github.com/merwanehamadi/Auto-GPT merwanehamadi | ||
git submodule add https://github.com/HMDCrew/AutoGPT HMDCrew |