Skip to content

Commit be39f6f

Browse files
committed
Merge branch 'tlsdc/tool_use_agents' of github.com:ServiceNow/BrowserGym into tlsdc/tool_use_agents
2 parents 5911c1e + 3d19bea commit be39f6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browsergym/core/src/browsergym/core/action/highlevel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ def to_tool_description(self, api="openai") -> list[dict]:
530530
for tool_name, action in self.action_set.items():
531531
# Parse the signature to extract parameter names and types
532532
parameters = {"type": "object", "properties": {}, "required": []}
533-
signature = inspect.signature(eval(tool_name))
533+
signature = inspect.signature(action)
534534
for param_name, param in signature.parameters.items():
535535
param_type = "string" # Default to string if type is not specified
536536
if param.annotation != inspect.Parameter.empty:

0 commit comments

Comments
 (0)