Skip to content

Commit

Permalink
fix: format error in some benchmark configs
Browse files Browse the repository at this point in the history
  • Loading branch information
chenweize1998 committed Oct 11, 2023
1 parent c4205bd commit 9b03c91
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 233 deletions.
21 changes: 11 additions & 10 deletions agentverse/tasks/tasksolving/brainstorming/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,17 @@ name: pipeline
environment:
env_type: task-basic
max_turn: *max_turn
role_assigner:
type: role_description
cnt_agents: *cnt_agents
decision_maker:
type: brainstorming
max_inner_turns: *max_inner_turns
executor:
type: none
evaluator:
type: basic
rule:
role_assigner:
type: role_description
cnt_agents: *cnt_agents
decision_maker:
type: brainstorming
max_inner_turns: *max_inner_turns
executor:
type: none
evaluator:
type: basic

agents:
- #role_assigner_agent:
Expand Down
19 changes: 10 additions & 9 deletions agentverse/tasks/tasksolving/humaneval/gpt-3.5/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,15 +129,16 @@ name: pipeline
environment:
env_type: task-basic
max_turn: *max_turn
role_assigner:
type: role_description
cnt_agents: *cnt_agents
decision_maker:
type: vertical-solver-first
executor:
type: none
evaluator:
type: basic
rule:
role_assigner:
type: role_description
cnt_agents: *cnt_agents
decision_maker:
type: vertical-solver-first
executor:
type: none
evaluator:
type: basic

agents:
- #role_assigner_agent:
Expand Down
19 changes: 10 additions & 9 deletions agentverse/tasks/tasksolving/humaneval/gpt-4/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,16 @@ name: pipeline
environment:
env_type: task-basic
max_turn: *max_turn
role_assigner:
type: role_description
cnt_agents: *cnt_agents
decision_maker:
type: vertical-solver-first
executor:
type: code-test
evaluator:
type: basic
rule:
role_assigner:
type: role_description
cnt_agents: *cnt_agents
decision_maker:
type: vertical-solver-first
executor:
type: code-test
evaluator:
type: basic

agents:
- #role_assigner_agent:
Expand Down
21 changes: 11 additions & 10 deletions agentverse/tasks/tasksolving/pythoncalculator/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,17 @@ name: pipeline
environment:
env_type: task-basic
max_turn: *max_turn
role_assigner:
type: role_description
cnt_agents: *cnt_agents
decision_maker:
type: vertical-solver-first
max_inner_turns: *max_inner_turns
executor:
type: none
evaluator:
type: basic
rule:
role_assigner:
type: role_description
cnt_agents: *cnt_agents
decision_maker:
type: vertical-solver-first
max_inner_turns: *max_inner_turns
executor:
type: none
evaluator:
type: basic

agents:
- #role_assigner_agent:
Expand Down
192 changes: 0 additions & 192 deletions agentverse/tasks/tasksolving/responsegen/config.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions agentverse_command/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,12 @@ def cli_main():
assert args.tool_tmp_path is not None
with open(args.tool_tmp_path, "w") as f:
f.write(json.dumps(example["tools"]))
agentversepipeline = TaskSolving.from_task(args.task, args.tasks_dir)
agentversepipeline.environment.set_task_description(example["input"])
agentverse = TaskSolving.from_task(args.task, args.tasks_dir)
agentverse.environment.set_task_description(example["input"])
# print(args.single_agent)
# print(args.discussion_mode)
# exit()
plan, result, logs = agentversepipeline.run()
plan, result, logs = agentverse.run()
f.write(
json.dumps(
{
Expand Down

0 comments on commit 9b03c91

Please sign in to comment.