lyzr-cortex-sdk 0.1.2 → 0.1.3
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 +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,11 +5,11 @@ Build tools that integrate with the Cortex Platform for bidirectional knowledge
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install
|
|
8
|
+
npm install lyzr-cortex-sdk
|
|
9
9
|
# or
|
|
10
|
-
yarn add
|
|
10
|
+
yarn add lyzr-cortex-sdk
|
|
11
11
|
# or
|
|
12
|
-
pnpm add
|
|
12
|
+
pnpm add lyzr-cortex-sdk
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Quick Start
|
|
@@ -17,7 +17,7 @@ pnpm add @cortex/sdk
|
|
|
17
17
|
### React Integration
|
|
18
18
|
|
|
19
19
|
```tsx
|
|
20
|
-
import { CortexProvider, useCortex } from '
|
|
20
|
+
import { CortexProvider, useCortex } from 'lyzr-cortex-sdk';
|
|
21
21
|
|
|
22
22
|
// 1. Wrap your app with CortexProvider
|
|
23
23
|
function App() {
|
|
@@ -65,7 +65,7 @@ function MeetingCard({ meeting }) {
|
|
|
65
65
|
### Direct API Client (without React)
|
|
66
66
|
|
|
67
67
|
```typescript
|
|
68
|
-
import { CortexClient } from '
|
|
68
|
+
import { CortexClient } from 'lyzr-cortex-sdk';
|
|
69
69
|
|
|
70
70
|
const client = new CortexClient({
|
|
71
71
|
apiUrl: 'https://api.cortex.ai',
|
|
@@ -91,7 +91,7 @@ console.log(result.sources);
|
|
|
91
91
|
### PostMessage Bridge (Low-level)
|
|
92
92
|
|
|
93
93
|
```typescript
|
|
94
|
-
import { CortexBridge, isEmbeddedInCortex } from '
|
|
94
|
+
import { CortexBridge, isEmbeddedInCortex } from 'lyzr-cortex-sdk';
|
|
95
95
|
|
|
96
96
|
// Check if embedded
|
|
97
97
|
if (isEmbeddedInCortex()) {
|