@patternzones/koine-sdk 1.1.4 → 1.1.5
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 +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -76,6 +76,17 @@ See the [SDK Guide](https://github.com/pattern-zones-co/koine/blob/main/docs/sdk
|
|
|
76
76
|
- Error handling
|
|
77
77
|
- Multi-turn conversations
|
|
78
78
|
|
|
79
|
+
## Examples
|
|
80
|
+
|
|
81
|
+
Runnable examples are available in [docs/examples/typescript/](https://github.com/pattern-zones-co/koine/tree/main/docs/examples/typescript):
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
bun run docs/examples/typescript/hello.ts # Basic text generation
|
|
85
|
+
bun run docs/examples/typescript/extract-recipe.ts # Structured output with Zod
|
|
86
|
+
bun run docs/examples/typescript/stream.ts # Real-time streaming
|
|
87
|
+
bun run docs/examples/typescript/conversation.ts # Multi-turn sessions
|
|
88
|
+
```
|
|
89
|
+
|
|
79
90
|
## License
|
|
80
91
|
|
|
81
92
|
Dual-licensed under [AGPL-3.0 or commercial license](https://github.com/pattern-zones-co/koine/blob/main/LICENSE).
|