Agent Client Protocol - v2.12.0
    Preparing search index...

    Type Alias Stream

    Stream interface for stable ACP v1 connections.

    This type powers bidirectional communication for an ACP connection using individual JSON-RPC messages. ACP does not use JSON-RPC batches; a connection answers a received JSON array with a single -32600 response with id: null.

    The most common way to create a Stream is using ndJsonStream.

    type Stream = {
        writable: WritableStream<AnyMessage>;
        readable: ReadableStream<AnyMessage>;
    }
    Index
    writable: WritableStream<AnyMessage>

    Outgoing JSON-RPC messages written by this side of the connection.

    readable: ReadableStream<AnyMessage>

    Incoming JSON-RPC messages read by this side of the connection.