Skip to content

Commit c9d2ef9

Browse files
Add AGENT_37_SONNET support and update agent configurations
1 parent d384b8a commit c9d2ef9

File tree

4 files changed

+21
-4
lines changed

4 files changed

+21
-4
lines changed

main.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,17 @@
1414
RANDOM_SEARCH_AGENT,
1515
AGENT_4o,
1616
AGENT_4o_MINI,
17+
AGENT_o3_MINI,
18+
AGENT_o1_MINI,
19+
AGENT_37_SONNET,
20+
AGENT_CLAUDE_SONNET_35,
1721
)
1822
from agentlab.experiments.study import Study
1923

2024
logging.getLogger().setLevel(logging.INFO)
2125

2226
# choose your agent or provide a new agent
23-
agent_args = [AGENT_4o_MINI]
27+
agent_args = [AGENT_o1_MINI]
2428
# agent_args = [AGENT_4o]
2529

2630

@@ -35,14 +39,14 @@
3539
# Set reproducibility_mode = True for reproducibility
3640
# this will "ask" agents to be deterministic. Also, it will prevent you from launching if you have
3741
# local changes. For your custom agents you need to implement set_reproducibility_mode
38-
reproducibility_mode = False
42+
reproducibility_mode = True
3943

4044
# Set relaunch = True to relaunch an existing study, this will continue incomplete
4145
# experiments and relaunch errored experiments
4246
relaunch = False
4347

4448
## Number of parallel jobs
45-
n_jobs = 4 # Make sure to use 1 job when debugging in VSCode
49+
n_jobs = 5 # Make sure to use 1 job when debugging in VSCode
4650
# n_jobs = -1 # to use all available cores
4751

4852

src/agentlab/agents/generic_agent/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
AGENT_4o,
1717
AGENT_4o_MINI,
1818
AGENT_CLAUDE_SONNET_35,
19+
AGENT_37_SONNET,
1920
AGENT_4o_VISION,
2021
AGENT_o3_MINI,
2122
AGENT_o1_MINI,
@@ -34,6 +35,7 @@
3435
"RANDOM_SEARCH_AGENT",
3536
"AGENT_CUSTOM",
3637
"AGENT_CLAUDE_SONNET_35",
38+
"AGENT_37_SONNET",
3739
"AGENT_4o_VISION",
3840
"AGENT_4o_MINI_VISION",
3941
"AGENT_CLAUDE_SONNET_35_VISION",

src/agentlab/agents/generic_agent/agent_configs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@
264264
chat_model_args=CHAT_MODEL_ARGS_DICT["openrouter/anthropic/claude-3.5-sonnet:beta"],
265265
flags=FLAGS_GPT_4o,
266266
)
267-
267+
AGENT_37_SONNET = GenericAgentArgs(
268+
chat_model_args=CHAT_MODEL_ARGS_DICT["openrouter/anthropic/claude-3.7-sonnet"],
269+
flags=FLAGS_GPT_4o,
270+
)
268271
AGENT_o3_MINI = GenericAgentArgs(
269272
chat_model_args=CHAT_MODEL_ARGS_DICT["openai/o3-mini-2025-01-31"],
270273
flags=FLAGS_GPT_4o,

src/agentlab/llm/llm_configs.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@
184184
max_new_tokens=2_000,
185185
temperature=1e-1,
186186
),
187+
"openrouter/anthropic/claude-3.7-sonnet": OpenRouterModelArgs(
188+
model_name="anthropic/claude-3.7-sonnet",
189+
max_total_tokens=200_000,
190+
max_input_tokens=200_000,
191+
max_new_tokens=8_192,
192+
temperature=1e-1,
193+
vision_support=True,
194+
),
187195
"openrouter/openai/o1-mini-2024-09-12": OpenRouterModelArgs(
188196
model_name="openai/o1-mini-2024-09-12",
189197
max_total_tokens=128_000,

0 commit comments

Comments
 (0)