Skip to content

Commit

Permalink
update README file
Browse files Browse the repository at this point in the history
  • Loading branch information
metakai1 committed Jan 1, 2025
1 parent 3122269 commit 2190f1d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/plugin-save-this/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# @ai16z/plugin-save-this
# saveThisPlugin

A plugin for Eliza that enables saving information from conversations as knowledge records.

Expand All @@ -24,6 +23,9 @@ pnpm add @ai16z/plugin-save-this
```typescript
import { saveThisPlugin } from '@ai16z/plugin-save-this';

// Register the plugin
eliza.use(saveThisPlugin);
```

2. Use in conversation:

Expand All @@ -36,11 +38,11 @@ Eliza: "I've stored the information for you"

No additional configuration is required. The plugin uses Eliza's built-in knowledge storage system.

### Triggering and use of State.
## Triggering and Use of State

Instead of an ACTION based trigger, the plugin uses the Provider to monitor for an explicit "save this" keyphrase at the beginning of a message. A typical action based trigger is not used, because I found that when multiple SAVE_MEMORY requests are done, eventually the LLM decides to start saving all messages to memory, and that is probably not what we want to do.
Instead of an ACTION based trigger, the plugin uses the Provider to monitor for an explicit "save this" keyphrase at the beginning of a message. A typical action based trigger is not used, because when multiple SAVE_MEMORY requests are done, eventually the LLM decides to start saving all messages to memory, which is not the desired behavior.

If the "save this" keyphrase is found, the Provider will set a state variable to allow the action to proceed. So if the SAVE_THIS action is somehow triggered in another way, the handler aborts.
If the "save this" keyphrase is found, the Provider will set a state variable to allow the action to proceed. If the SAVE_THIS action is somehow triggered in another way, the handler aborts.

## License

Expand Down

0 comments on commit 2190f1d

Please sign in to comment.