Skip to content

Commit f3eff52

Browse files
Remove unnecessary comments and whitespace in agent.py
1 parent b22ffb4 commit f3eff52

File tree

1 file changed

+2
-8
lines changed
  • src/agentlab/agents/tool_use_agent

1 file changed

+2
-8
lines changed

src/agentlab/agents/tool_use_agent/agent.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ def close(self):
5555
return self.model_args.close_server()
5656

5757

58-
5958
class ToolUseAgent(bgym.Agent):
6059
def __init__(
6160
self,
@@ -88,12 +87,11 @@ def obs_preprocessor(self, obs):
8887

8988
return obs
9089

91-
## noop() actions are treated as tool calls. but they should not be.
92-
# As noop tool was never called and but noop is the default action in the action set. When no tools are called.
93-
## What if we do not include the tool calls in the messages and just execute them and prodice the observations.
90+
9491

9592
@cost_tracker_decorator
9693
def get_action(self, obs: Any) -> float:
94+
9795
if len(self.messages) == 0:
9896
self.messages += self.get_initalize_messages(obs)
9997
self.messages += [
@@ -249,7 +247,3 @@ def get_tool_use_agent(
249247
return agent
250248

251249

252-
## We have three providers that we want to support.
253-
# Anthropic
254-
# OpenAI
255-
# vllm (uses OpenAI API)

0 commit comments

Comments
 (0)