Skip to content

Commit

Permalink
fix: fix the incompatible simulation configs. ci skip
Browse files Browse the repository at this point in the history
  • Loading branch information
chenweize1998 committed Oct 10, 2023
1 parent d359c76 commit 0360286
Show file tree
Hide file tree
Showing 12 changed files with 94 additions and 4 deletions.
4 changes: 2 additions & 2 deletions agentverse/agents/simulation_agent/prisoner_dilemma.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

from agentverse.message import Message

#from . import agent_registry
#from .base import BaseAgent
# from . import agent_registry
# from .base import BaseAgent
from agentverse.agents import agent_registry
from agentverse.agents.base import BaseAgent

Expand Down
4 changes: 4 additions & 0 deletions agentverse/tasks/simulation/alice_home/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ agents:
llm_type: gpt-4
temperature: 0.3
max_tokens: 128
output_parser:
type: alice_home
current_time: "2023-04-01 07:00:00"
-
agent_type: reflection
Expand Down Expand Up @@ -120,6 +122,8 @@ agents:
llm_type: gpt-4
temperature: 0.3
max_tokens: 128
output_parser:
type: alice_home
current_time: "2023-04-01 07:00:00"

tools: ~
6 changes: 6 additions & 0 deletions agentverse/tasks/simulation/db_diag/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ agents:
model: gpt-4
temperature: 0.7
max_tokens: 1024
output_parser:
type: db_diag
tools: *tools
verbose: true
-
Expand All @@ -233,6 +235,8 @@ agents:
model: gpt-4
temperature: 0.7
max_tokens: 512
output_parser:
type: db_diag
tools: *tools
verbose: true
-
Expand All @@ -255,5 +259,7 @@ agents:
model: gpt-4
temperature: 0.7
max_tokens: 512
output_parser:
type: db_diag
tools: *tools
verbose: true
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ agents:
model: text-davinci-003
temperature: 0.7
max_tokens: 250
output_parser:
type: math_problem_2players_tools
tools: *tools

- agent_type: tool
Expand All @@ -112,4 +114,6 @@ agents:
model: text-davinci-003
temperature: 0.7
max_tokens: 250
output_parser:
type: math_problem_2players_tools
tools: *tools
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ agents:
model: 'gpt-4'
temperature: 0.7
max_tokens: 250
output_parser:
type: nlp_classroom_3players
- agent_type: conversation
name: Student Beta
role_description: You are Beta, a student curious about Natural Language Processing and you want to learn some basic concepts of NLP. You know nothing about the area so you will ask lots of questions.
Expand All @@ -51,6 +53,8 @@ agents:
model: 'gpt-4'
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_3players
- agent_type: conversation
name: Teaching Assistant Gamma
role_description: You are Gamma, a teaching assistant of the Natural Language Processing module. You mostly help with logistics and marking, but occasionally handles questions. Your answer should be less than 100 words.
Expand All @@ -62,5 +66,8 @@ agents:
model: gpt-4
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_3players


tools:
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ agents:
model: text-davinci-003
temperature: 0.7
max_tokens: 250
output_parser:
type: nlp_classroom_3players_withtool
memory:
memory_type: chat_history
verbose: true
Expand All @@ -182,6 +184,8 @@ agents:
model: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_3players_withtool
tools: *tools
verbose: true
- agent_type: tool
Expand All @@ -203,5 +207,7 @@ agents:
model: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_3players_withtool
tools: *tools
verbose: true
18 changes: 18 additions & 0 deletions agentverse/tasks/simulation/nlp_classroom_9players/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 250
output_parser:
type: nlp_classroom_9players
memory:
memory_type: chat_history
-
Expand All @@ -113,6 +115,8 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players
-
agent_type: conversation
name: Student Amelia
Expand All @@ -125,6 +129,8 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players
-
agent_type: conversation
name: Student Ethan
Expand All @@ -137,6 +143,8 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players
-
agent_type: conversation
name: Student Charlotte
Expand All @@ -149,6 +157,8 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players
-
agent_type: conversation
name: Student Mason
Expand All @@ -161,6 +171,8 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players
-
agent_type: conversation
name: Student Ava
Expand All @@ -173,6 +185,8 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players
-
agent_type: conversation
name: Student Noah
Expand All @@ -185,6 +199,8 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players
-
agent_type: conversation
name: Student Emma
Expand All @@ -197,5 +213,7 @@ agents:
model: "gpt-4"
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players

tools:
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 250
output_parser:
type: nlp_classroom_9players_group
memory:
memory_type: chat_history
-
Expand All @@ -131,6 +133,8 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players_group
-
agent_type: conversation
name: Student Amelia
Expand All @@ -142,6 +146,8 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players_group
-
agent_type: conversation
name: Student Ethan
Expand All @@ -153,6 +159,8 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players_group
-
agent_type: conversation
name: Student Charlotte
Expand All @@ -164,6 +172,8 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players_group
-
agent_type: conversation
name: Student Mason
Expand All @@ -175,6 +185,8 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players_group
-
agent_type: conversation
name: Student Ava
Expand All @@ -186,6 +198,8 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players_group
-
agent_type: conversation
name: Student Noah
Expand All @@ -197,6 +211,8 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players_group
-
agent_type: conversation
name: Student Emma
Expand All @@ -208,5 +224,7 @@ agents:
llm_type: text-davinci-003
temperature: 0.7
max_tokens: 100
output_parser:
type: nlp_classroom_9players_group

tools:
12 changes: 12 additions & 0 deletions agentverse/tasks/simulation/pokemon/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ agents:
memory:
memory_type: chat_history
prompt_template: *prompt
output_parser:
type: pokemon
llm:
llm_type: gpt-3.5-turbo
model: 'gpt-3.5-turbo'
Expand All @@ -102,6 +104,8 @@ agents:
memory:
memory_type: chat_history
prompt_template: *prompt
output_parser:
type: pokemon
llm:
llm_type: gpt-3.5-turbo
model: gpt-3.5-turbo
Expand All @@ -120,6 +124,8 @@ agents:
memory:
memory_type: chat_history
prompt_template: *prompt
output_parser:
type: pokemon
llm:
llm_type: gpt-3.5-turbo
model: gpt-3.5-turbo
Expand All @@ -138,6 +144,8 @@ agents:
memory:
memory_type: chat_history
prompt_template: *prompt
output_parser:
type: pokemon
llm:
llm_type: gpt-3.5-turbo
model: gpt-3.5-turbo
Expand All @@ -156,6 +164,8 @@ agents:
memory:
memory_type: chat_history
prompt_template: *prompt
output_parser:
type: pokemon
llm:
llm_type: gpt-3.5-turbo
model: gpt-3.5-turbo
Expand All @@ -174,6 +184,8 @@ agents:
memory:
memory_type: chat_history
prompt_template: *prompt
output_parser:
type: pokemon
llm:
llm_type: gpt-3.5-turbo
model: gpt-3.5-turbo
Expand Down
6 changes: 6 additions & 0 deletions agentverse/tasks/simulation/prisoner_dilemma/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ agents:
llm_type: gpt-4
temperature: 1.2
max_tokens: 200
output_parser:
type: prisoner_dilemma
- agent_type: prisoner
name: Suspect1
personality: "You are a Sophisticated Egoist, you always seek for your personal interests best"
Expand All @@ -76,6 +78,8 @@ agents:
llm_type: gpt-4
temperature: 1.2
max_tokens: 100
output_parser:
type: prisoner_dilemma
- agent_type: prisoner
name: Suspect2
personality: ""
Expand All @@ -96,5 +100,7 @@ agents:
llm_type: gpt-4
temperature: 1.2
max_tokens: 100
output_parser:
type: prisoner_dilemma

tools:
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ agents:
llm_type: gpt-3.5-turbo
temperature: 0.
max_tokens: 1024
output_parser:
type: sde_team/sde_team_2players

- agent_type: conversation
name: code_tester
Expand All @@ -172,6 +174,8 @@ agents:
llm_type: gpt-3.5-turbo
temperature: 0.
max_tokens: 256
output_parser:
type: sde_team/sde_team_2players

- agent_type: conversation
name: code_reviewer
Expand All @@ -184,4 +188,6 @@ agents:
llm:
llm_type: gpt-3.5-turbo
temperature: 0.
max_tokens: 1024
max_tokens: 1024
output_parser:
type: sde_team/sde_team_2players
Loading

0 comments on commit 0360286

Please sign in to comment.