extrait 0.1.2 → 0.3.0
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 +3 -1
- package/dist/index.cjs +741 -56
- package/dist/index.js +741 -56
- package/dist/providers/mcp-runtime.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -232,6 +232,7 @@ Run examples with: `bun run dev <example-name>`
|
|
|
232
232
|
|
|
233
233
|
Available examples:
|
|
234
234
|
- `streaming` - Real LLM streaming + snapshot self-check ([streaming.ts](examples/streaming.ts))
|
|
235
|
+
- `streaming-with-tools` - Real text streaming with MCP tools + self-check ([streaming-with-tools.ts](examples/streaming-with-tools.ts))
|
|
235
236
|
- `simple` - Basic structured output with streaming ([simple.ts](examples/simple.ts))
|
|
236
237
|
- `sentiment-analysis` - Enum validation, strict mode ([sentiment-analysis.ts](examples/sentiment-analysis.ts))
|
|
237
238
|
- `data-extraction` - Complex nested schemas, self-healing ([data-extraction.ts](examples/data-extraction.ts))
|
|
@@ -241,6 +242,7 @@ Available examples:
|
|
|
241
242
|
Pass arguments after the example name:
|
|
242
243
|
```bash
|
|
243
244
|
bun run dev streaming
|
|
245
|
+
bun run dev streaming-with-tools
|
|
244
246
|
bun run dev simple "Bun.js runtime"
|
|
245
247
|
bun run dev sentiment-analysis "I love this product."
|
|
246
248
|
bun run dev multi-step-reasoning "Why is the sky blue?"
|
|
@@ -257,5 +259,5 @@ bun run dev multi-step-reasoning "Why is the sky blue?"
|
|
|
257
259
|
## Testing
|
|
258
260
|
|
|
259
261
|
```bash
|
|
260
|
-
bun test
|
|
262
|
+
bun run test
|
|
261
263
|
```
|