Skip to main content
Create an AI middleware class, along with its test file, under a module’s ai/middlewares directory. The @talosjs/ai dependency is added when it isn’t already installed.

Usage

Examples

Options

AI Skill

This command ships a matching ai:middleware:create skill. After generating the class and test file, it walks your AI agent through implementing a chat middleware that implements IMiddleware from @talosjs/ai to observe or transform the chat lifecycle. This is chat middleware, not HTTP or socket middleware.