Skip to content

Commit

Permalink
Fix validator state
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Mar 21, 2024
1 parent b690642 commit 3e3eab3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bgent",
"version": "0.1.5",
"version": "0.1.6",
"private": false,
"description": "bgent. because agent was taken.",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 3e3eab3

Please sign in to comment.