Skip to content

Commit 0e4a32b

Browse files
support for ToolUseAgent in controller, enable loading of previous run
1 parent 944746e commit 0e4a32b

File tree

4 files changed

+408
-124
lines changed

4 files changed

+408
-124
lines changed

src/agentlab/agents/tool_use_agent/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,12 @@
44

55
# for backward compatibility of unpickling
66
sys.modules[__name__ + ".multi_tool_agent"] = sys.modules[__name__]
7+
8+
__all__ = [
9+
"GPT_4_1",
10+
"AZURE_GPT_4_1",
11+
"GPT_4_1_MINI",
12+
"AZURE_GPT_4_1_MINI",
13+
"OPENAI_CHATAPI_MODEL_CONFIG",
14+
"CLAUDE_MODEL_CONFIG",
15+
]

src/agentlab/agents/tool_use_agent/tool_use_agent.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,15 @@ def get_action(self, obs: Any) -> float:
508508
vision_support=True,
509509
)
510510

511+
AZURE_GPT_4_1 = AzureOpenAIResponseModelArgs(
512+
model_name="gpt-4.1",
513+
max_total_tokens=200_000,
514+
max_input_tokens=200_000,
515+
max_new_tokens=2_000,
516+
temperature=0.1,
517+
vision_support=True,
518+
)
519+
511520
GPT_4_1_MINI = OpenAIResponseModelArgs(
512521
model_name="gpt-4.1-mini",
513522
max_total_tokens=200_000,
@@ -517,6 +526,15 @@ def get_action(self, obs: Any) -> float:
517526
vision_support=True,
518527
)
519528

529+
AZURE_GPT_4_1_MINI = AzureOpenAIResponseModelArgs(
530+
model_name="gpt-4.1-mini",
531+
max_total_tokens=200_000,
532+
max_input_tokens=200_000,
533+
max_new_tokens=2_000,
534+
temperature=0.1,
535+
vision_support=True,
536+
)
537+
520538
OPENAI_CHATAPI_MODEL_CONFIG = OpenAIChatModelArgs(
521539
model_name="gpt-4o-2024-08-06",
522540
max_total_tokens=200_000,

0 commit comments

Comments
 (0)