@tanstack/ai
Version:
Type-safe TypeScript AI SDK for streaming chat, tool calling, agents, structured outputs, and multimodal generation.
13 lines (12 loc) • 451 B
JavaScript
// src/activities/chat/middleware/define.ts
/**
* Identity helper for authoring middleware with precise capability inference.
* Returns the middleware unchanged at runtime; only sharpens its type so the
* `chat()` array coverage check and `createChatMiddleware` builder can read the
* exact `requires`/`provides`.
*/
function defineChatMiddleware(middleware) {
return middleware;
}
export { defineChatMiddleware };
//# sourceMappingURL=define.js.map