Skip to content
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

feat: add workspace API to SDK #872

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

thedadams
Copy link
Contributor

This change also changes the error behavior when running tools that are simply wrapped commands. Previously, all such tools would not return an error, rather an error message in hopes that the LLM would retry. However, if the tool is just a command (i.e. has no parent), then it should return an error so that the caller doesn't have to guess whether an error occurred.

g-linville
g-linville previously approved these changes Oct 14, 2024
pkg/sdkserver/workspaces.go Outdated Show resolved Hide resolved
This change also changes the error behavior when running tools that are
simply wrapped commands. Previously, all such tools would not return an
error, rather an error message in hopes that the LLM would retry.
However, if the tool is just a command (i.e. has no parent), then it
should return an error so that the caller doesn't have to guess whether
an error occurred.

Signed-off-by: Donnie Adams <[email protected]>
@thedadams thedadams merged commit 0927125 into gptscript-ai:main Oct 15, 2024
10 checks passed
@thedadams thedadams deleted the sdk-workspace-api branch October 15, 2024 20:29
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.

2 participants