Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/minecraft update #276

Open
wants to merge 22 commits into
base: minecraft
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
77462e2
create stone_pickaxe
XianzheFan Dec 24, 2024
976a440
help each other to make 3 stone pickaxes and add codeOutput to memory
XianzheFan Dec 25, 2024
ec73201
add theory of mind (goal inference)
XianzheFan Dec 25, 2024
c854d11
Delete examples/experimental/minecraft_agents/agent_output_log_202412…
XianzheFan Dec 27, 2024
81e21cc
Delete examples/experimental/minecraft_agents/agent_output_log_202412…
XianzheFan Dec 27, 2024
1bb4b99
Delete examples/experimental/minecraft_agents/agent_output_log_202412…
XianzheFan Dec 27, 2024
6a67143
add theory of mind (goal inference)
XianzheFan Dec 27, 2024
fe355fd
toml files for different tasks
XianzheFan Dec 28, 2024
f3c914b
added some new ToM questions
XianzheFan Jan 9, 2025
3e99c74
improve log
XianzheFan Jan 10, 2025
1b29ee2
read images from google cloud storage; add openai_api_predict_async
XianzheFan Jan 11, 2025
a5e0b26
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 12, 2025
7a2dff4
add chest_no_task_division
XianzheFan Jan 13, 2025
b3c0bad
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 13, 2025
e6c037b
add boat_no_division.toml
XianzheFan Jan 15, 2025
93fa00f
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 15, 2025
483ef2b
add stone_pickaxe & wooden pickaxe (no task division)
XianzheFan Jan 16, 2025
5876b37
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 16, 2025
9375428
add door_no_task_division.toml
XianzheFan Jan 16, 2025
f9142bb
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 16, 2025
3d4ead0
Automatically generate TOML files
XianzheFan Jan 19, 2025
2759cf2
[autofix.ci] apply automated fixes
autofix-ci[bot] Jan 19, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 77 additions & 0 deletions examples/experimental/minecraft_agents/generate_toml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
import pandas as pd

xlsx_file = "examples\\experimental\\group_discussion_agents\\toml_generation.xlsx"
df = pd.read_excel(xlsx_file)

toml_template = '''redis_url = "redis://localhost:6379/0"
extra_modules = ["examples.experimental.group_discussion_agents.group_discussion_agents"]

[[nodes]]
node_name = "Jack"
node_class = "llm_agent"

[nodes.node_args]
query_interval = 15
output_channel = "Jack"
input_text_channels = ["Jane", "John"]
input_tick_channel = "tick/secs/1"
goal = """{goal_jack}"""
model_name = "gpt-4o-2024-11-20"
agent_name = "Jack"

[[nodes]]
node_name = "Jane"
node_class = "llm_agent"

[nodes.node_args]
query_interval = 19
output_channel = "Jane"
input_text_channels = ["Jack", "John"]
input_tick_channel = "tick/secs/1"
goal = """{goal_jane}"""
model_name = "gpt-4o-2024-11-20"
agent_name = "Jane"

[[nodes]]
node_name = "John"
node_class = "llm_agent"

[nodes.node_args]
query_interval = 23
output_channel = "John"
input_text_channels = ["Jack", "Jane"]
input_tick_channel = "tick/secs/1"
goal = """{goal_john}"""
model_name = "gpt-4o-2024-11-20"
agent_name = "John"

[[nodes]]
node_name = "record"
node_class = "record"

[nodes.node_args]
jsonl_file_path = "log.jsonl"

[nodes.node_args.record_channel_types]
"Jack" = "agent_action"
"Jane" = "agent_action"
"John" = "agent_action"

[[nodes]]
node_name = "tick"
node_class = "tick"
'''

for index, row in df.iterrows():
goal_jack = row["Jack"]
goal_jane = row["Jane"]
goal_john = row["John"]
filename = row["Filename"]

toml_content = toml_template.format(
goal_jack=goal_jack, goal_jane=goal_jane, goal_john=goal_john
)

output_filename = f"group_discussion_agents_{filename}.toml"
with open(output_filename, "w") as f:
f.write(toml_content)
Loading
Loading