Skip to content

Conversation

@thedadams
Copy link
Contributor

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.

setScriptContent: React.Dispatch<React.SetStateAction<Block[] | null>>;
tool: Tool;
setTool: React.Dispatch<React.SetStateAction<Tool>>;
rootTool: Tool;
Copy link
Contributor Author

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.

Copy link
Member

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@thedadams
Copy link
Contributor Author

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>
@thedadams thedadams merged commit 439fe40 into gptscript-ai:main Aug 27, 2024
@thedadams thedadams deleted the save-assistant branch August 27, 2024 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants