File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
src/promptflow-core/promptflow/executor/_service/apis Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 88from promptflow ._core .tools_manager import collect_package_tools
99from promptflow ._utils .logger_utils import service_logger
1010from 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
1211from promptflow .executor ._service .utils .service_utils import generate_error_response
1312
1413router = APIRouter (prefix = "/tool" )
@@ -24,17 +23,7 @@ def list_package_tools():
2423
2524@router .post ("/retrieve_tool_func_result" )
2625async 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" )
You can’t perform that action at this time.
0 commit comments