promptgun 0.10.1 → 0.10.2
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 +4 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -51,12 +51,10 @@ You can put callbacks on elements of the result data, which get called as they c
|
|
|
51
51
|
```typescript
|
|
52
52
|
await ai
|
|
53
53
|
.chat('Give 5 top restaurants in London')
|
|
54
|
-
.
|
|
55
|
-
.
|
|
56
|
-
.
|
|
57
|
-
|
|
58
|
-
.hasString('address')
|
|
59
|
-
)
|
|
54
|
+
.toArray(d => d
|
|
55
|
+
.object(obj => obj
|
|
56
|
+
.hasString('name')
|
|
57
|
+
.hasString('address')
|
|
60
58
|
)
|
|
61
59
|
)
|
|
62
60
|
.onElement(restaurantStream /* type safe */ => {
|