@odla-ai/harness 0.3.0 → 0.4.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.
@@ -205,6 +205,16 @@ function createCodeRuntimeControlClient(options) {
205
205
  }
206
206
  await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/chat/events`, { eventId, event });
207
207
  },
208
+ recallMemories: async (sessionId, subjects, limit) => {
209
+ const response2 = await call(
210
+ `/registry/code/runtime/sessions/${validSessionId(sessionId)}/recall`,
211
+ { subjects: [...subjects], limit }
212
+ );
213
+ return Array.isArray(response2.memories) ? response2.memories : [];
214
+ },
215
+ rememberMemory: async (sessionId, memory) => {
216
+ await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/remember`, memory);
217
+ },
208
218
  reportSessionFailure: async (sessionId, message2) => {
209
219
  if (!message2.trim() || message2.length > 2e3) throw new TypeError("invalid Code session failure");
210
220
  await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/failure`, { message: message2 });
@@ -2641,4 +2651,4 @@ export {
2641
2651
  runGoal,
2642
2652
  CodePiRuntimeEngine
2643
2653
  };
2644
- //# sourceMappingURL=chunk-U2OFMIAW.js.map
2654
+ //# sourceMappingURL=chunk-ANNX7VGK.js.map