From 2fdfa2c3a3e3c882ff78d378fb1c5e3c1a42a00b Mon Sep 17 00:00:00 2001 From: moon Date: Sat, 9 Mar 2024 02:29:31 -0800 Subject: [PATCH] papss state down through process actions --- package.json | 2 +- src/lib/runtime.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 3876ee4..e3751b1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bgent", - "version": "0.0.39", + "version": "0.0.40", "private": false, "description": "bgent. because agent was taken.", "type": "module", diff --git a/src/lib/runtime.ts b/src/lib/runtime.ts index 26cfcfa..5d28b22 100644 --- a/src/lib/runtime.ts +++ b/src/lib/runtime.ts @@ -324,7 +324,7 @@ export class BgentRuntime { * @param message The message to process. * @param content The content of the message to process actions from. */ - async processActions(message: Message, content: Content) { + async processActions(message: Message, content: Content, state?: State) { if (!content.action) { return; } @@ -348,7 +348,7 @@ export class BgentRuntime { return; } - return await action.handler(this, message); + return await action.handler(this, message, state); } /**