promptgun 0.11.0 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,8 @@ const count /* type: number */ = await ai
|
|
|
22
22
|
.chat('How many countries are in the EU')
|
|
23
23
|
.getNumber()
|
|
24
24
|
```
|
|
25
|
-
Promptgun will both tell the LLM what shape its output data should be, parse that data to JS types
|
|
25
|
+
Promptgun will both tell the LLM what shape its output data should be, parse that data to JS types
|
|
26
|
+
and correctly Typescript-type the output!
|
|
26
27
|
|
|
27
28
|
You can do this for types of any complexity:
|
|
28
29
|
```typescript
|