echo-ai-sdk-ts 2.6.2 → 2.7.0
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 +42 -0
- package/dist/index.js +11099 -56
- package/dist/index.mjs +11114 -55
- package/package.json +20 -3
- package/dist/chunk-NZO6ZQRY.mjs +0 -2092
- package/dist/fileFromPath-4L47H5QG.mjs +0 -127
- package/dist/index.d.mts +0 -1073
- package/dist/index.d.ts +0 -1073
package/README.md
CHANGED
|
@@ -137,6 +137,46 @@ const bot = new CustomerSupportBot({
|
|
|
137
137
|
});
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
+
#### 🧠 Honcho Memory — Semantic, Reasoning-Based Agent Memory
|
|
141
|
+
Replace simple in-memory chat history with [Honcho's](https://honcho.dev) production-grade memory system. Your agents gain **cross-session context**, **semantic search**, **entity understanding**, and **continual learning** — all as a drop-in `BaseMemoryStore`.
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
import { HonchoMemoryStore, AgentExecutor } from "echo-ai-sdk";
|
|
145
|
+
|
|
146
|
+
// Drop-in replacement for InMemoryStore
|
|
147
|
+
const memory = new HonchoMemoryStore({
|
|
148
|
+
apiKey: process.env.HONCHO_API_KEY,
|
|
149
|
+
workspaceId: "my-app",
|
|
150
|
+
});
|
|
151
|
+
|
|
152
|
+
const agent = new AgentExecutor({ gateway, memory, tools });
|
|
153
|
+
|
|
154
|
+
// Agents now automatically persist and recall context across sessions!
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
**Semantic Search** — Find memories by meaning, not keywords:
|
|
158
|
+
```typescript
|
|
159
|
+
const results = await memory.searchMemory("user", "coding preferences", {
|
|
160
|
+
topK: 5,
|
|
161
|
+
maxDistance: 0.7,
|
|
162
|
+
});
|
|
163
|
+
// → Synthesized conclusions like "User prefers TypeScript with functional patterns"
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
**Peer Insights** — Ask Honcho what it knows about a user:
|
|
167
|
+
```typescript
|
|
168
|
+
const insight = await memory.getInsights("user", "What motivates this user?");
|
|
169
|
+
// → "The user is motivated by building AI products that help people..."
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
**Unified Semantic Search** — Combine Honcho reasoning with local vector stores:
|
|
173
|
+
```typescript
|
|
174
|
+
import { SemanticMemorySearch, HonchoMemoryStore } from "echo-ai-sdk";
|
|
175
|
+
|
|
176
|
+
const search = new SemanticMemorySearch(honchoStore, optionalVectorStore);
|
|
177
|
+
const results = await search.search("user", "project architecture");
|
|
178
|
+
```
|
|
179
|
+
|
|
140
180
|
#### 📈 Outcome-Based Billing & ROI
|
|
141
181
|
Track the *real value* of your AI by recording business outcomes.
|
|
142
182
|
```typescript
|
|
@@ -618,6 +658,8 @@ const voice = new EchoVoice({
|
|
|
618
658
|
| `PromptTemplate` | Versioned prompt with mustache rendering |
|
|
619
659
|
| `PromptRegistry` | Prompt version management with A/B rollback |
|
|
620
660
|
| `InMemoryStore` | Session-based conversation memory |
|
|
661
|
+
| `HonchoMemoryStore` | Production-grade Honcho-powered semantic memory store |
|
|
662
|
+
| `SemanticMemorySearch` | Unified search across Honcho reasoning + local vectors |
|
|
621
663
|
| `AgentTelemetry` | Lifecycle hooks interface for APM integration |
|
|
622
664
|
|
|
623
665
|
## License
|