UNPKG

@inngest/agent-kit

Version:

AgentKit is a framework for creating and orchestrating AI agents and AI workflows

36 lines (33 loc) 997 B
import * as http from 'http'; import { InngestFunction, Inngest } from 'inngest'; import { N as Network, A as Agent } from './agent-H4AdzvYn.cjs'; import '@inngest/ai'; import 'inngest/components/InngestFunction'; import 'zod'; import 'inngest/experimental'; /** * Create a server to serve Agents and Networks as Inngest functions * * @example * ```ts * import { createServer, createAgent, createNetwork } from "@inngest/agent-kit"; * * const myAgent = createAgent(...); * const myNetwork = createNetwork(...); * const server = createServer({ * agents: [myAgent], * networks: [myNetworks], * }); * server.listen(3000) * ``` * * @public */ declare const createServer: ({ appId, networks, agents, client, functions: manualFns, }: { appId?: string; networks?: Network<any>[]; agents?: Agent<any>[]; functions?: InngestFunction.Any[]; client?: Inngest.Any; }) => http.Server<typeof http.IncomingMessage, typeof http.ServerResponse>; export { createServer };