@sovant/sdk 1.0.1 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +4 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,25 +1,24 @@
1
1
  # Sovant TypeScript SDK
2
- [![npm version](https://img.shields.io/npm/v/sovant)](https://www.npmjs.com/package/sovant)
2
+ [![npm version](https://img.shields.io/npm/v/@sovant/sdk)](https://www.npmjs.com/package/@sovant/sdk)
3
3
 
4
4
  ## Install
5
5
  ```bash
6
- npm i sovant
6
+ npm i @sovant/sdk
7
7
  ```
8
8
 
9
9
  ## 60s Quickstart
10
10
  ```typescript
11
- import { Sovant } from "sovant";
11
+ import { Sovant } from "@sovant/sdk";
12
12
 
13
13
  const sv = new Sovant({ apiKey: process.env.SOVANT_API_KEY! });
14
14
 
15
15
  await sv.memory.create({
16
- subject: "customer:123",
17
16
  data: { note: "hello" },
17
+ type: "preference",
18
18
  ttl: "30d"
19
19
  });
20
20
 
21
21
  const res = await sv.memory.search({
22
- subject: "customer:123",
23
22
  query: "hello",
24
23
  topK: 3
25
24
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sovant/sdk",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Sovant Memory-as-a-Service TypeScript SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",