Agent Client Protocol - v0.5.1
    Preparing search index...

    Function ndJsonStream

    • Creates an ACP Stream from a pair of newline-delimited JSON streams.

      This is the typical way to handle ACP connections over stdio, converting between AnyMessage objects and newline-delimited JSON.

      Parameters

      • output: WritableStream<Uint8Array<ArrayBufferLike>>

        The writable stream to send encoded messages to

      • input: ReadableStream<Uint8Array<ArrayBufferLike>>

        The readable stream to receive encoded messages from

      Returns Stream

      A Stream for bidirectional ACP communication