Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

fix: distinguish between nil and non-nil allowed tools#977

Merged
thedadams merged 1 commit into
gptscript-ai:mainfrom
thedadams:non-nil-allowed-tools
May 30, 2025
Merged

fix: distinguish between nil and non-nil allowed tools#977
thedadams merged 1 commit into
gptscript-ai:mainfrom
thedadams:non-nil-allowed-tools

Conversation

@thedadams

Copy link
Copy Markdown
Contributor

If allowedTools is nil, then all tools are allowed. If allowed tools is non-nil and has length zero, then no tools are allowed.

If allowedTools is nil, then all tools are allowed. If allowed tools is
non-nil and has length zero, then no tools are allowed.

Signed-off-by: Donnie Adams <donnie@acorn.io>
@thedadams thedadams requested a review from g-linville May 30, 2025 14:11
@thedadams

Copy link
Copy Markdown
Contributor Author

Is this a good idea?

@g-linville

Copy link
Copy Markdown
Member

I think this makes sense.

@thedadams thedadams merged commit c810be4 into gptscript-ai:main May 30, 2025
10 checks passed
@thedadams thedadams deleted the non-nil-allowed-tools branch May 30, 2025 14:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants