Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Ying Chen committed Apr 11, 2024
1 parent bb266d4 commit 4ccf394
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ def test_tool_with_connection_resolve(self, path):
"value": {"api_key": "mock", "api_base": "mock"},
}
}
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connection_provider=connections)
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connections=connections)
assistant_definition = tool_resolver._convert_to_assistant_definition(
assistant_definition_path=path, input_name="input_name", node_name="dummy_node"
)
Expand Down Expand Up @@ -650,7 +650,7 @@ def test_tool_with_connection_resolve(self, path):

@pytest.mark.parametrize("path", ["assistant_definition_without_functions.yaml"])
def test_code_interpreter_and_retrieval_tool_resolve(self, path):
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connection_provider={})
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connections={})
assistant_definition = tool_resolver._convert_to_assistant_definition(
assistant_definition_path=path, input_name="input_name", node_name="dummy_node"
)
Expand Down Expand Up @@ -679,7 +679,7 @@ def test_description_resolve(self, path):
"value": {"api_key": "mock", "api_base": "mock"},
}
}
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connection_provider=connections)
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connections=connections)
assistant_definition = tool_resolver._convert_to_assistant_definition(
assistant_definition_path=path, input_name="input_name", node_name="dummy_node"
)
Expand Down Expand Up @@ -716,7 +716,7 @@ def test_types_resolve(self, path):
"value": {"api_key": "mock", "api_base": "mock"},
}
}
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connection_provider=connections)
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connections=connections)
assistant_definition = tool_resolver._convert_to_assistant_definition(
assistant_definition_path=path, input_name="input_name", node_name="dummy_node"
)
Expand Down Expand Up @@ -773,7 +773,7 @@ def test_invalid_assistant_definition_path(self, path):
"value": {"api_key": "mock", "api_base": "mock"},
}
}
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connection_provider=connections)
tool_resolver = ToolResolver(working_dir=Path(ASSISTANT_DEFINITION_ROOT), connections=connections)
with pytest.raises(InvalidSource) as e:
tool_resolver._convert_to_assistant_definition(
assistant_definition_path=path, input_name="input_name", node_name="dummy_node"
Expand Down

0 comments on commit 4ccf394

Please sign in to comment.