@jazzmine-ui/sdk 0.1.1 → 0.1.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 +5 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@ Framework-agnostic TypeScript client for Jazzmine agentic backends.
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @jazzmine/
|
|
8
|
+
npm install @jazzmine-ui/sdk
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
## Quick Start
|
|
@@ -13,7 +13,7 @@ npm install @jazzmine/client
|
|
|
13
13
|
### 1) Basic chat
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
|
-
import JazzmineClient from "@jazzmine/
|
|
16
|
+
import JazzmineClient from "@jazzmine-ui/sdk";
|
|
17
17
|
|
|
18
18
|
const client = new JazzmineClient("https://your-jazzmine-api.example.com", {
|
|
19
19
|
apiKey: "your-api-key",
|
|
@@ -26,7 +26,7 @@ console.log(reply.response);
|
|
|
26
26
|
### 2) Streaming chat
|
|
27
27
|
|
|
28
28
|
```ts
|
|
29
|
-
import JazzmineClient from "@jazzmine/
|
|
29
|
+
import JazzmineClient from "@jazzmine-ui/sdk";
|
|
30
30
|
|
|
31
31
|
const client = new JazzmineClient("https://your-jazzmine-api.example.com");
|
|
32
32
|
|
|
@@ -51,7 +51,7 @@ console.log(final.conversation_id);
|
|
|
51
51
|
### 3) Convenience sendMessage flow
|
|
52
52
|
|
|
53
53
|
```ts
|
|
54
|
-
import JazzmineClient from "@jazzmine/
|
|
54
|
+
import JazzmineClient from "@jazzmine-ui/sdk";
|
|
55
55
|
|
|
56
56
|
const client = new JazzmineClient("https://your-jazzmine-api.example.com", {
|
|
57
57
|
defaultUserId: "alice",
|
|
@@ -128,7 +128,7 @@ class JazzmineClientError extends Error {
|
|
|
128
128
|
|
|
129
129
|
## Framework Compatibility
|
|
130
130
|
|
|
131
|
-
`@jazzmine/
|
|
131
|
+
`@jazzmine-ui/sdk` is framework-agnostic and can be used from React, Vue, Svelte, Next.js, and vanilla JavaScript/TypeScript apps.
|
|
132
132
|
|
|
133
133
|
## Node.js Note
|
|
134
134
|
|