Skip to content

Commit

Permalink
misc: modify config files for distributed running
Browse files Browse the repository at this point in the history
  • Loading branch information
chenweize1998 committed Jul 9, 2024
1 parent 7779071 commit 368ef27
Show file tree
Hide file tree
Showing 22 changed files with 93 additions and 36 deletions.
26 changes: 26 additions & 0 deletions configs/client_configs/cases/example/bob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
server:
port: <SERVER_PORT>
hostname: <SERVER_IP>

tool_agent:
agent_type: ReAct
agent_name: Bob
desc: |-
Bob can leverage third-party tools to help manage resources.
tools_config: tools_code_executor.yaml # simply an example
image_name: react-agent
container_name: bob-agent
port: 7070
model: gpt-4-1106-preview
max_num_steps: 8

comm:
name: Bob
desc: Bob is a strategic intelligent assistant specializing in logistics and resource management. He excels at analyzing complex supply chains, predicting potential disruptions, and optimizing the flow of goods. Bob can work with other assistants to dynamically reallocate resources, ensuring efficiency and minimizing delays. His strong problem-solving skills and collaborative nature make him an invaluable asset in any logistical operation.
type: Thing Assistant
support_nested_teams: true
max_team_up_attempts: 10
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
temperature: 0.
3 changes: 0 additions & 3 deletions configs/client_configs/cases/gaia/code_executor.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand All @@ -22,8 +21,6 @@ comm:
type: Thing Assistant
support_nested_teams: false
max_team_up_attempts: 10
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
3 changes: 0 additions & 3 deletions configs/client_configs/cases/gaia/web_browser.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down Expand Up @@ -27,8 +26,6 @@ comm:
type: Thing Assistant
support_nested_teams: false
max_team_up_attempts: 5
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
3 changes: 0 additions & 3 deletions configs/client_configs/cases/gaia/wikidata.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand All @@ -22,8 +21,6 @@ comm:
type: Thing Assistant
support_nested_teams: false
max_team_up_attempts: 10
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
3 changes: 0 additions & 3 deletions configs/client_configs/cases/gaia/youtube.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand All @@ -22,8 +21,6 @@ comm:
type: Thing Assistant
support_nested_teams: false
max_team_up_attempts: 10
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
1 change: 0 additions & 1 deletion configs/client_configs/cases/open_instruction/autogpt.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down
1 change: 0 additions & 1 deletion configs/client_configs/cases/paper_writing/arxiv.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down
1 change: 0 additions & 1 deletion configs/client_configs/cases/paper_writing/chengyang.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down
1 change: 0 additions & 1 deletion configs/client_configs/cases/paper_writing/chenqian.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down
1 change: 0 additions & 1 deletion configs/client_configs/cases/paper_writing/weizechen.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand Down
3 changes: 0 additions & 3 deletions configs/client_configs/cases/rocobench/alice.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand All @@ -11,8 +10,6 @@ comm:
type: Thing Assistant
support_nested_teams: false
max_team_up_attempts: 10
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
3 changes: 0 additions & 3 deletions configs/client_configs/cases/rocobench/bob.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand All @@ -11,8 +10,6 @@ comm:
type: Thing Assistant
support_nested_teams: false
max_team_up_attempts: 10
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
3 changes: 0 additions & 3 deletions configs/client_configs/cases/rocobench/chad.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand All @@ -11,8 +10,6 @@ comm:
type: Thing Assistant
support_nested_teams: false
max_team_up_attempts: 10
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
3 changes: 0 additions & 3 deletions configs/client_configs/cases/rocobench/dave.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand All @@ -11,8 +10,6 @@ comm:
type: Thing Assistant
support_nested_teams: false
max_team_up_attempts: 10
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
3 changes: 0 additions & 3 deletions configs/client_configs/default_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
server:
host: http://ioa-server
port: 7788
hostname: ioa-server

Expand All @@ -25,8 +24,6 @@ comm:
type: Human Assistant
support_nested_teams: false
max_team_up_attempts: 10
tools:
team_up_tools: configs/tools/tools_team_up.yaml
llm:
llm_type: openai-chat
model: gpt-4-1106-preview
Expand Down
28 changes: 28 additions & 0 deletions dockerfiles/compose/client_only.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Set the current version of compose yml file
version: "3"

services:
Agent1:
image: ioa-client:latest
build:
context: ../../
dockerfile: dockerfiles/client.Dockerfile
container_name: react-agent-1
env_file:
- .env
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ../../configs/client_configs:/app/configs
environment:
- OPENAI_API_KEY
- CUSTOM_CONFIG=configs/cases/example/bob.yaml
ports:
- 5050:5050
stdin_open: true
tty: true

networks:
default:
name: agent_network
driver: bridge
external: true
File renamed without changes.
38 changes: 38 additions & 0 deletions dockerfiles/compose/server_only.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
version: "3"

services:
Server:
image: ioa-server:latest
build:
context: ../../
dockerfile: dockerfiles/server.Dockerfile
container_name: ioa-server
volumes:
- ../../configs/server_configs:/app/configs
env_file:
- .env
environment:
- OPENAI_API_KEY
ports:
- 7788:7788
stdin_open: true
tty: true

ServerFrontend:
image: ioa-server-frontend:latest
build:
context: ../../
dockerfile: dockerfiles/server_frontend.Dockerfile
container_name: server_frontend
ports:
- 80:80
depends_on:
- Server
stdin_open: true
tty: true

networks:
default:
name: agent_network
driver: bridge
external: true
2 changes: 1 addition & 1 deletion im_client/server_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class ServerHelper:
Helper functions that help communicate with the server.
"""

host = global_config["server"]["host"]
host = "http://" + global_config["server"]["hostname"]
port = global_config["server"]["port"]
url = f"{host}:{port}"

Expand Down

0 comments on commit 368ef27

Please sign in to comment.