-
Notifications
You must be signed in to change notification settings - Fork 12
feat: add ability to save an assistant #288
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
| setScriptContent: React.Dispatch<React.SetStateAction<Block[] | null>>; | ||
| tool: Tool; | ||
| setTool: React.Dispatch<React.SetStateAction<Tool>>; | ||
| rootTool: Tool; |
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.
I keep getting confused that this is only the "root tool" and not the whole tool, so I renamed it. Happy to switch it back if folks disagree with this change.
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.
I like this
| } | ||
|
|
||
| // The knowledge tool is dynamic and not controlled by the user. Don't add it to the saved tool. | ||
| const addedTools = 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.
👍
|
In my drive, I realized there is a small issue with this. I will fix it tonight. |
If a user has added tools to a thread, then they will be able to save the assistant such that these tools become part of the assistant. The only exception to this is the knowledge tool: the user can't explicitly add the knowledge tool, so it will not be saved to the assistant. This will change when a user has the ability to add knowledge to an assistant. Signed-off-by: Donnie Adams <donnie@acorn.io>
If a user has added tools to a thread, then they will be able to save the assistant such that these tools become part of the assistant. The only exception to this is the knowledge tool: the user can't explicitly add the knowledge tool, so it will not be saved to the assistant. This will change when a user has the ability to add knowledge to an assistant.