Skip to content

Commit a361ffb

Browse files
committed
Some clean up in preparation for merging
1 parent 7c0e018 commit a361ffb

File tree

2 files changed

+0
-275
lines changed

2 files changed

+0
-275
lines changed

src/agentlab/agents/tool_use_agent/agent.py

Lines changed: 0 additions & 249 deletions
This file was deleted.

src/agentlab/agents/tool_use_agent/multi_tool_agent.py renamed to src/agentlab/agents/tool_use_agent/tool_use_agent.py

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import fnmatch
22
import json
3-
import logging
43
from abc import ABC, abstractmethod
54
from copy import copy
65
from dataclasses import asdict, dataclass, field
@@ -23,14 +22,11 @@
2322
from agentlab.agents.agent_args import AgentArgs
2423
from agentlab.llm.llm_utils import image_to_png_base64_url
2524
from agentlab.llm.response_api import (
26-
BaseModelArgs,
2725
ClaudeResponseModelArgs,
2826
LLMOutput,
2927
MessageBuilder,
3028
OpenAIChatModelArgs,
3129
OpenAIResponseModelArgs,
32-
OpenRouterModelArgs,
33-
VLLMModelArgs,
3430
)
3531
from agentlab.llm.tracking import cost_tracker_decorator
3632

@@ -294,9 +290,6 @@ def _init(self):
294290
hint_db_path = Path(__file__).parent / self.hint_db_rel_path
295291
self.hint_db = pd.read_csv(hint_db_path, header=0, index_col=None, dtype=str)
296292

297-
# index the task_name for fast lookup
298-
# self.hint_db.set_index("task_name", inplace=True, drop=False)
299-
300293
def apply(self, llm, discussion: StructuredDiscussion, task_name: str) -> dict:
301294
if not self.use_task_hint:
302295
return
@@ -545,22 +538,3 @@ def get_action(self, obs: Any) -> float:
545538
model_args=CLAUDE_MODEL_CONFIG,
546539
config=DEFAULT_PROMPT_CONFIG,
547540
)
548-
549-
# MT_TOOL_USE_AGENT = ToolUseAgentArgs(
550-
# model_args=OPENROUTER_MODEL,
551-
# )
552-
CHATAPI_AGENT_CONFIG = ToolUseAgentArgs(
553-
model_args=OpenAIChatModelArgs(
554-
model_name="gpt-4o-2024-11-20",
555-
max_total_tokens=200_000,
556-
max_input_tokens=200_000,
557-
max_new_tokens=2_000,
558-
temperature=0.7,
559-
vision_support=True,
560-
),
561-
)
562-
563-
564-
OAI_CHAT_TOOl_AGENT = ToolUseAgentArgs(
565-
model_args=OpenAIChatModelArgs(model_name="gpt-4o-2024-08-06")
566-
)

0 commit comments

Comments
 (0)