MCPcopy Create free account
hub / github.com/bytedance/bolt / registerPythonScalarFunction

Function registerPythonScalarFunction

bolt/python/PythonScalarFunction.cpp:134–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

132};
133
134void registerPythonScalarFunction(
135 pybind11::function callback,
136 std::string alias,
137 TypePtr returnType,
138 int numArgs) {
139 bolt::exec::registerVectorFunction(
140 alias,
141 bolt::python::getSignatures(returnType),
142 std::make_unique<UserDefinedPythonScalarFunction>(
143 numArgs, std::move(callback), returnType));
144}
145} // namespace bytedance::bolt::py

Callers

nothing calls this directly

Calls 2

getSignaturesFunction · 0.85
registerVectorFunctionFunction · 0.50

Tested by

no test coverage detected