All connectors
Frameworks

Restate

Restate durable-execution middleware.

Restate middleware that protects durable AI handlers — inbound input, AI step args, and committed outputs all flow through the engine before Restate persists them.

Install

pnpm add @blackunicorn/bonklm-restate

Minimal example

import * as restate from '@restatedev/restate-sdk'
import { bonklmRestate } from '@blackunicorn/bonklm-restate'

restate.endpoint()
  .bind(restate.service({
    name: 'safe-agent',
    handlers: { run: bonklmRestate(async (ctx, prompt) => ctx.run('ai', () => answer(prompt)), { validators: ['prompt-injection'] }) },
  }))
  .listen()
Related connectors