MCPcopy Index your code
hub / github.com/extism/java-sdk / invokeFunction

Method invokeFunction

src/main/java/org/extism/sdk/Extism.java:44–48  ·  view source on GitHub ↗

Invokes the named function from the Manifest with the given input. This is a convenience method. Prefer initializing and using a Plugin where possible. @param manifest the manifest containing the function @param function the name of the function to call @param input

(Manifest manifest, String function, String input)

Source from the content-addressed store, hash-verified

42 * @throws ExtismException if the call fails
43 */
44 public static String invokeFunction(Manifest manifest, String function, String input) throws ExtismException {
45 try (var plugin = new Plugin(manifest, false, null)) {
46 return plugin.call(function, input);
47 }
48 }
49
50 /**
51 * Error levels for the Extism logging facility.

Calls 1

callMethod · 0.80