Skip to content

Commit f740812

Browse files
Black and darglint
1 parent 8c2d469 commit f740812

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/agentlab/benchmarks/osworld.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -586,20 +586,20 @@ def to_tool_description(self, api="openai"):
586586
# TODO: Rename bgym AbstractActionSet 'to_tool_descriptor' method as 'to_tool_description' for consistency.
587587
if self.action_space == "computer_13":
588588
tools = COMPUTER_13_ACTIONS_OAI_CHATCOMPLETION_TOOLS
589-
589+
590590
else:
591591
raise ValueError(
592592
"Only 'computer_13' action space is currently supported for tool description."
593593
)
594594
api_formatters = {
595595
"openai": lambda: format_chat_completion_tools_to_response_api(tools),
596596
"chatcompletion": lambda: tools,
597-
"anthropic": lambda: format_chat_completion_tools_to_anthropic(tools)
597+
"anthropic": lambda: format_chat_completion_tools_to_anthropic(tools),
598598
}
599-
599+
600600
if api not in api_formatters:
601601
raise ValueError(f"Unsupported API type: {api}")
602-
602+
603603
return api_formatters[api]()
604604

605605

@@ -733,11 +733,12 @@ def model_post_init(self, __context: Any) -> None:
733733

734734
def fix_settings_file_path_in_config(self, task: dict) -> dict:
735735
"""Fix the settings file path in the task configuration.
736+
736737
Args:
737-
task (dict): Task configuration dictionary.
738+
task: Task configuration dictionary.
738739
739740
Returns:
740-
dict: Updated task configuration with fixed settings file paths.
741+
Updated task configuration with fixed settings file paths.
741742
"""
742743
osworld_repo = os.getenv("OSWORLD_REPO", "OSWorld")
743744
updated_task = deepcopy(task) # Avoid modifying the original task

0 commit comments

Comments
 (0)