@memoy-dev/sdk 0.0.2 → 0.0.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/package.json +1 -1
- package/readme.md +2 -2
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -11,7 +11,7 @@ npm install @memoy-dev/sdk
|
|
|
11
11
|
```ts
|
|
12
12
|
import { Memoy, MemoyError } from "@memoy-dev/sdk"
|
|
13
13
|
|
|
14
|
-
const memoy = new Memoy({ apiKey: "
|
|
14
|
+
const memoy = new Memoy({ apiKey: "memoy_live_..." })
|
|
15
15
|
|
|
16
16
|
// With a key, the agent remembers this user across conversations
|
|
17
17
|
const reply = await memoy.run({
|
|
@@ -48,7 +48,7 @@ try {
|
|
|
48
48
|
import { Memoy, MemoyError } from "@memoy-dev/sdk"
|
|
49
49
|
|
|
50
50
|
// apiKey defaults to process.env.MEMOY_API_KEY
|
|
51
|
-
const memoy = new Memoy({ apiKey: "
|
|
51
|
+
const memoy = new Memoy({ apiKey: "memoy_live_..." })
|
|
52
52
|
|
|
53
53
|
// Runs on the agent's own model.
|
|
54
54
|
const reply = await memoy.run({ agent: "your-agent-slug", input: "Hi!" })
|