Skip to content

enhance: browser: combine get and download tools #617

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

Merged
merged 3 commits into from
Apr 24, 2025

Conversation

g-linville
Copy link
Member

Comment on lines +52 to +58
const run = await client.run("github.com/obot-platform/tools/workspace-files/tool.gpt", {
subTool: "workspace_read",
workspace: workspaceId,
input: JSON.stringify({
filename: fileName
})
})
Copy link
Member Author

Choose a reason for hiding this comment

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

Is this the right way to do this? Or would it be better to use a relative path back to the workspace-files directory?

Copy link
Member

Choose a reason for hiding this comment

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

IIUC, this will get remapped to the local directory since we're setting GPTSCRIPT_TOOL_REMAP in the docker image anyway... Although I'm not actually sure if that gets plumbed down to tool executions

Copy link
Contributor

@tybalex tybalex Apr 24, 2025

Choose a reason for hiding this comment

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

I'd prefer this as it's the gptscript API, though I 'v seen Daishan used relative path to directly call the tool in a subprocess.

Signed-off-by: Grant Linville <[email protected]>
@g-linville g-linville marked this pull request as ready for review April 24, 2025 18:43
@g-linville g-linville merged commit 773699f into obot-platform:main Apr 24, 2025
2 checks passed
@g-linville g-linville deleted the smart-get-url branch April 24, 2025 22:34
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