Skip to content

Conversation

@g-linville
Copy link
Member

@g-linville g-linville commented Jul 15, 2024

This adds a new tool parameter, Share Credentials (with several aliases), which is essentially the same thing as Share Tools but specifically for credential tools.

I also added a new integration test that tests credential "scopes" to make sure that in a tree of tools that define and share credentials, each tool only has access to credentials that it defines and credentials shared by its immediate children in the tree.

Signed-off-by: Grant Linville <grant@acorn.io>
@g-linville g-linville changed the title feat: share credential enhance: share credential Jul 15, 2024
@g-linville g-linville marked this pull request as ready for review July 15, 2024 19:42
}
case "credentials", "creds", "credential", "cred":
tool.Parameters.Credentials = append(tool.Parameters.Credentials, value)
case "exportcredentials", "exportcreds", "exportcredential", "exportcred", "sharecredentials", "sharecreds", "sharecredential", "sharecred":
Copy link
Contributor

Choose a reason for hiding this comment

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

don't support the "export" keyword. For new things we are only adding "share" since we want everything to switch to share.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed

Copy link
Member Author

Choose a reason for hiding this comment

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

Well I pushed another commit at least, but it isn't showing up in the PR 🤔

Signed-off-by: Grant Linville <grant@acorn.io>
Copy link
Contributor

@StrongMonkey StrongMonkey left a comment

Choose a reason for hiding this comment

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

💯 on the test added

@g-linville g-linville merged commit 3055632 into gptscript-ai:main Jul 17, 2024
@g-linville g-linville deleted the export-creds branch July 17, 2024 18:52
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.

4 participants