Skip to main content

Module adapter_algorithm

Module adapter_algorithm 

Source
Expand description

Algorithm adapter — an Extism guest algorithm driving GraphCompute kernels.

§Wire contract (per qname q)

  • algo_<q>_invoke — input is a JSON object {session, graph, args}. The guest drives the coarse kernels via the imported uni_graph_call host fn (referencing session on every call) and publishes its per-vertex result with emit. The output bytes are ignored; the host reads the emitted columns from the session registry (proposal §4.6).

The host projects the graph (capability-gated on GraphCompute + HostQuery via the bridge), opens a session in the shared registry, invokes the guest, then closes the session and assembles the declared (nodeId, …) batch.

Structs§

ExtismAlgorithm
AlgorithmProvider adapter wrapping an Extism plugin pool + session registry.