-
Notifications
You must be signed in to change notification settings - Fork 12
enhance: simplify the dynamic tool logic #302
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As long as this doesn't give the LLM access to call credential tools, I'm good with it.
|
This change doesn't add all the tools that a tool references, like it did previously. |
A change has been merged into gptscript core that allows us to simplify the dynamic tool logic. Signed-off-by: Donnie Adams <donnie@acorn.io>
|
The changes here have spiraled. In many places, we were using This was causing issues with saving after these changes. Therefore, I removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty big changes but simplified a lot of the code. I can help testing once this is in. 👍
| workspace, | ||
| thread | ||
| thread, | ||
| gatewayTool() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we always add gatewayTools now?
| runningScript = null; | ||
| } | ||
|
|
||
| state.tools = state.tools.filter((t) => t === knowledgeTool); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm, looks like you are filtering out the knowledge tool. I wonder if you can just get the value from code instead of passing around through the socket.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It wasn't letting me import the package from app.mjs, so this was the best I could do.
A change has been merged into gptscript core that allows us to simplify the dynamic tool logic.