diff --git a/package.json b/package.json index 079e9a2..e582f98 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bgent", - "version": "0.1.5", + "version": "0.1.6", "private": false, "description": "bgent. because agent was taken.", "type": "module", diff --git a/src/lib/runtime.ts b/src/lib/runtime.ts index ef6fc72..15d5ccf 100644 --- a/src/lib/runtime.ts +++ b/src/lib/runtime.ts @@ -552,7 +552,7 @@ export class BgentRuntime { }; const actionPromises = this.actions.map(async (action: Action) => { - const result = await action.validate(this, message); + const result = await action.validate(this, message, initialState); if (result) { return action; }