react-ai-agent 1.5.7 → 1.5.9
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 -4
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/ui.css +1 -1
- package/index.d.ts +25 -7
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -15,13 +15,13 @@ Clean, production-ready React chat component. Bring your own API - you control e
|
|
|
15
15
|
## Installation
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
|
-
npm install react-
|
|
18
|
+
npm install react-ai-agent
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
Then import the ui in your app:
|
|
22
22
|
|
|
23
23
|
```javascript
|
|
24
|
-
import 'react-
|
|
24
|
+
import 'react-ai-agent/ui.css';
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Quick Start
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
DefaultPanel,
|
|
33
33
|
tokenManager,
|
|
34
34
|
sessionManager
|
|
35
|
-
} from 'react-
|
|
35
|
+
} from 'react-ai-agent';
|
|
36
36
|
|
|
37
37
|
function App() {
|
|
38
38
|
// 1. Configure token refresh
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
chatApi, // API client
|
|
94
94
|
streamService, // Stream handler
|
|
95
95
|
webSocketService // WebSocket client
|
|
96
|
-
} from 'react-
|
|
96
|
+
} from 'react-ai-agent';
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
## Examples
|