-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Special tools cause doGenerateWorkflow to crash in node.js environment #42
Comments
Thank you for raising this issue. I haven't tested it in a Node.js environment yet. Firstly, the code you provided seems to be only a partial snippet, and it lacks definitions for variables such as Secondly, regarding the three tools
In summary, these three tools are universal and useful in both browser and computer environments, so I will include them in each workflow. However, due to various reasons, I used a less elegant implementation, which you mentioned as "Forcibly add special tools". Of course, I hope for a better implementation. You suggested adding them to the default tools, which I think is a good idea and these tools could be considered as a configurable option. Additionally, I noticed that the error message mentions the Lastly, the code of the Eko framework you are using is from a week ago. Perhaps you should use the latest version of the code (e.g., the develop branch)? Although the bug mentioned in this issue persists regardless of whether the latest code is used, it is a good habit to keep your local code synchronized with the develop branch. |
thx @HairlessVillager ! The simplest way to reproduce this issue is using the integration test included in the source code :) Put the following in
and run On design philosophy: imho as an agentic programming framework, we should definitely not restrict ourselves to interactive use. People would need the agent to have the capability to run autonomously, or even headlessly. From this angle, even browser use / computer use are plugins to the framework separate from the core workflow logic. So we shall discuss the aforementioned tools separately:
Apologies for limited availability of personal time lately. If you feel that this design choice needs further discussion, feel free to leave this issue open for the time being. |
Description
Special tools cause doGenerateWorkflow to crash in node.js environment
Steps to Reproduce
Expected Behavior
Workflow generates successfully with only the
browser_use
tool.Environment
node.js, eko ff32aab
Additional Context
This error should be caused by the following code in
doGenerateWorkflow
:If I got this correctly, these tools should be available only in the browser extension environment. Why are they not already included in the default tools and need to be added "forcibly"? I would recommend against enumerating the environment- (and usage-) specific tools in the workflow generation code, this they are not part of the platform-agnostic core logic.
The text was updated successfully, but these errors were encountered: