@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.
@@ -96,6 +96,16 @@ function createCodeRuntimeControlClient(options) {
96
96
  }
97
97
  await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/chat/events`, { eventId, event });
98
98
  },
99
+ recallMemories: async (sessionId, subjects, limit) => {
100
+ const response2 = await call(
101
+ `/registry/code/runtime/sessions/${validSessionId(sessionId)}/recall`,
102
+ { subjects: [...subjects], limit }
103
+ );
104
+ return Array.isArray(response2.memories) ? response2.memories : [];
105
+ },
106
+ rememberMemory: async (sessionId, memory) => {
107
+ await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/remember`, memory);
108
+ },
99
109
  reportSessionFailure: async (sessionId, message2) => {
100
110
  if (!message2.trim() || message2.length > 2e3) throw new TypeError("invalid Code session failure");
101
111
  await call(`/registry/code/runtime/sessions/${validSessionId(sessionId)}/failure`, { message: message2 });