Skip to content

Commit 79e3942

Browse files
committed
processAtions can't be awaited in non-async function
1 parent 2c439a4 commit 79e3942

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/client-direct/src/index.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -567,12 +567,14 @@ export class DirectClient {
567567
// only need to call if responseMessage.content.action is set
568568
if (contentObj.action) {
569569
// pass memory (query) to any actions to call
570-
const _result = await runtime.processActions(
570+
runtime.processActions(
571571
memory,
572572
[responseMessage],
573573
state,
574574
async (newMessages) => {
575-
message = newMessages;
575+
// FIXME: this is supposed override what the LLM said/decided
576+
// but the promise doesn't make this possible
577+
//message = newMessages;
576578
return [memory];
577579
}
578580
); // 0.674s

0 commit comments

Comments
 (0)