@cascaide-ts/server-fastify
v0.5.1
Published
Cascaide is a fullstack agent runtime and AI orchestration framework in typescript.
Readme
@cascaide-ts/server-fastify
Cascaide is a fullstack agent runtime and AI orchestration framework in typescript.
cascaide-ts/server-fastify provides the fastify backend adapter for cascade executions. Used to create the action and persistence api routes.
Installation
npm i @cascaide-ts/server-fastifyExample Use
import { serverWorkflowConfig } from '@/graphs/server/config';
import { createWorkflowHandler} from '@cascaide-ts/server-fastify';
export const POST = createFastifyWorkflowHandler(serverWorkflowConfig);import { createPersistenceHandler } from '@cascaide-ts/server-fastify';
import { PostgresPersistor } from '@cascaide-ts/postgres-js';
import { sql } from '@/lib/pglite';
const persistor = new PostgresPersistor(sql);
export const POST =createPersistenceHandler(persistor);
