Expand description
ai.bytesandbrains.wire v1 opset - engine-native.
Two ops, exactly one of which the user authors:
-
Send(user-facing): takes a payload + a typedpeerinput carrying aPeerId; resolves the peer to a multiaddr throughctx.peers.addresses, builds oneSlotFillper non-peer input from the compiler-stampeddest_suffixmetadata, ships the envelope, and returns(data, handle)- a structural-placeholderTriggerplus a freshly mintedwire_req_id. -
Recv(framework-synthesized): emitted on receiver partitions by [bb_compiler::synthesize_wire_recvs()]. Pure structural placeholder so the receiver’sFunctionProtostays a closed DAG and the consumer’s input value name resolves to aNodeSiteIdthe inbounddeliver_fillwrites into. The dispatch handler returns no outputs - Recv never lands on the frontier in normal flow.
Both ops register through the same path as every other syscall
(Engine::register_syscall). There is no separate WireRuntime
binding - wire is engine infrastructure, not a user role.
Structs§
- RecvOp
- Marker struct for
register_syscall::<RecvOp>. - SendOp
- Marker struct for
register_syscall::<SendOp>.
Constants§
- WIRE_
DOMAIN - Wire opset domain.
- WIRE_
VERSION - Wire opset version.
Functions§
- invoke
Senddispatch entry point matchingStatelessInvokeFn.- invoke_
recv Recvdispatch entry point matchingStatelessInvokeFn. Pure structural placeholder; downstream consumers are pushed onto the frontier when inbound data-plane delivery seeds the slot, not by this dispatch.