Nola
A TypeScript extension language for writing typed AI inference requests directly in code
What does it do?
In a .tsi file, developers use infer to define the context the model can see and Intent and ask to request a value of a desired type. Functions provided in brackets after a request can be called by the model before it answers. The compiler uses TypeScript type information to create the request schema and transforms the code into ordinary TypeScript. The playground works without an account or API key, and the starter project runs its first execution offline using a saved replay.
Key features
- Defines the context visible to the model with infer
- Requests typed values from the model with Intent and ask
- Provides functions that the model can call when needed
- Compiles .tsi code to ordinary TypeScript
- Offers a playground that works without an account or API key
- Runs the starter project's first execution offline using a saved replay