# Class LiveRequestQueue

Queue used to send LiveRequest in a live (bidirectional streaming) way.

- Defined in agents/live_request_queue.ts:31

## Constructors

### constructor

- new LiveRequestQueue(): LiveRequestQueue

  #### Returns LiveRequestQueue

## Methods

### [asyncIterator]

- "[asyncIterator]"(): AsyncGenerator<LiveRequest, void, undefined>

  Implements the async iterator protocol.

  #### Returns AsyncGenerator<LiveRequest, void, undefined>

  - Defined in agents/live_request_queue.ts:131

### close

- close(): void

  Sends a close signal to the queue.

  #### Returns void

  - Defined in agents/live_request_queue.ts:75

### get

- get(): Promise<LiveRequest>

  Retrieves a request from the queue. If the queue is empty, it will wait until a request is available.

  #### Returns Promise<LiveRequest>

  A promise that resolves with the next available request.

  - Defined in agents/live_request_queue.ts:60

### send

- send(req: LiveRequest): void

  Adds a request to the queue. If there is a pending `get()` call, it will be resolved with the given request.

  #### Parameters

  - req: LiveRequest

    The request to send.

  #### Returns void

  - Defined in agents/live_request_queue.ts:43

### sendActivityEnd

- sendActivityEnd(): void

  Sends an activity end signal to mark the end of user input.

  #### Returns void

  - Defined in agents/live_request_queue.ts:124

### sendActivityStart

- sendActivityStart(): void

  Sends an activity start signal to mark the beginning of user input.

  #### Returns void

  - Defined in agents/live_request_queue.ts:117

### sendContent

- sendContent(content: Content): void

  Sends a content object to the queue.

  #### Parameters

  - content: Content

    The content to send.

  #### Returns void

  - Defined in agents/live_request_queue.ts:102

### sendRealtime

- sendRealtime(blob: Blob_2): void

  Sends a blob to the model in realtime mode.

  #### Parameters

  - blob: Blob_2

    The blob to send.

  #### Returns void

  - Defined in agents/live_request_queue.ts:110