Runtime
The GenAIScript cli also contains
a set of helpers written in GenAIScript. They can be imported
as the genaiscript/runtime
module.
In order to use the runtime, you will need to install GenAIScript in your project.
npm i -D genaiscript
pnpm add -D genaiscript
yarn add -D genaiscript
Helpers
- cast, cast any data to structured outputs
- classify, classify text
- makeItBetter, tell the LLM to improve its result
- pipeline, access to HuggingFace transformers
Importing the runtime
The runtime is available as a module. You can import it using the following code:
import { cast } from "genaiscript/runtime"