UNPKG

@ag076810/ai

Version:

Effortlessly integrate AI text and image models in your node applications

8 lines (7 loc) 250 B
const HexAgent = require("./agents/HexAgent"); (async function () { let stream = await HexAgent("the colors of the rainbow are", { stream: true }); for await (let color of stream) { process.stdout.write(color); // roygbiv } })();