Skip to content

Commit 297cfe8

Browse files
committed
Merge branch 'main' into Prepare-PromptFlow-Release
2 parents b4a9404 + f474cf3 commit 297cfe8

File tree

1 file changed

+1
-12
lines changed
  • src/promptflow-core/promptflow/executor/_service/apis

1 file changed

+1
-12
lines changed

src/promptflow-core/promptflow/executor/_service/apis/tool.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
from promptflow._core.tools_manager import collect_package_tools
99
from promptflow._utils.logger_utils import service_logger
1010
from promptflow.executor._service.contracts.tool_request import RetrieveToolFuncResultRequest, ToolMetaRequest
11-
from promptflow.executor._service.utils.process_utils import SHORT_WAIT_TIMEOUT, invoke_sync_function_in_process
1211
from promptflow.executor._service.utils.service_utils import generate_error_response
1312

1413
router = APIRouter(prefix="/tool")
@@ -24,17 +23,7 @@ def list_package_tools():
2423

2524
@router.post("/retrieve_tool_func_result")
2625
async def retrieve_tool_func_result(request: RetrieveToolFuncResultRequest):
27-
from promptflow._core.tools_manager import retrieve_tool_func_result
28-
29-
args = (request.func_call_scenario, request.func_path, request.func_kwargs, request.ws_triple)
30-
# To support dynamic list, runtime put PF_HTTP_CONNECTION_PROVIDER_ENDPOINT in request.environment_variables,
31-
# executor should set it to environment variables in subprocess for init http connection provider later.
32-
return await invoke_sync_function_in_process(
33-
retrieve_tool_func_result,
34-
args=args,
35-
wait_timeout=SHORT_WAIT_TIMEOUT,
36-
environment_variables=request.environment_variables,
37-
)
26+
raise NotImplementedError("Function deprecated for security reasons. This should not be reachable.")
3827

3928

4029
@router.post("/meta")

0 commit comments

Comments
 (0)