MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / executeComponent

Method executeComponent

include/vm/vm.h:187–193  ·  view source on GitHub ↗

Execute a component function with the given input.

Source from the content-addressed store, hash-verified

185
186 /// Execute a component function with the given input.
187 Expect<std::vector<std::pair<ComponentValVariant, ComponentValType>>>
188 executeComponent(std::string_view Func,
189 Span<const ComponentValVariant> Params = {},
190 Span<const ComponentValType> ParamTypes = {}) {
191 std::shared_lock Lock(Mutex);
192 return unsafeExecuteComponent(Func, Params, ParamTypes);
193 }
194
195 /// Execute a function of a registered component with the given input.
196 Expect<std::vector<std::pair<ComponentValVariant, ComponentValType>>>

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64