Skip to main content

@enclave-vm/broker

Tool broker and session management for the EnclaveJS streaming runtime. Orchestrates code execution, tool handling, and session lifecycle.

Installation

Quick Start

Broker Configuration

Tool Registry

Defining Tools

Tool Context

Tool Validation

Session Management

Session Manager

Session Info

Broker Session

HTTP API

Express Integration

Manual Route Registration

Session Handler

API Types

Event Filtering

Filter which events are streamed to clients.

Type-Based Filtering

Content-Based Filtering

Combined Filtering

Always-Allowed Events

Some events are always included regardless of filters to ensure protocol correctness:

Execution Options