@runloop/agent-axon-client
    Preparing search index...

    Function axonStream

    • Creates an ACP-compatible Stream backed by an Axon channel from @runloop/api-client.

      The Axon wire format uses event_type as the method name and payload as the params-level JSON. The ACP SDK's ClientSideConnection speaks JSON-RPC 2.0. This function bridges the two by:

      • Outbound: Unwrapping JSON-RPC requests/notifications into axon publish envelopes (event_type + payload).
      • Inbound: Wrapping axon events back into JSON-RPC messages using a method -> request-ID correlation map.

      Parameters

      Returns Stream

      A Stream (readable + writable pair) consumable by ClientSideConnection.