Skip to content

Commit

Permalink
papss state down through process actions
Browse files Browse the repository at this point in the history
  • Loading branch information
lalalune committed Mar 9, 2024
1 parent 03b55bc commit 2fdfa2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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.0.39",
"version": "0.0.40",
"private": false,
"description": "bgent. because agent was taken.",
"type": "module",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -348,7 +348,7 @@ export class BgentRuntime {
return;
}

return await action.handler(this, message);
return await action.handler(this, message, state);
}

/**
Expand Down

0 comments on commit 2fdfa2c

Please sign in to comment.