-
Notifications
You must be signed in to change notification settings - Fork 47
feat: port listDirectory from VSC #930
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
Conversation
this.workspace = features.workspace | ||
} | ||
|
||
public async queueDescription(params: ListDirectoryParams, updates: WritableStream) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What, if anything, will call this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the VSC implementation they use this to stream directly to chat. AFAIK there isn't a current implementation of this yet in Flare, but left this existing logic here to make it easier to port once it is, since it may simply involve moving this method elsewhere.
agent.addTool(fsReadTool.getSpec(), (input: FsReadParams) => fsReadTool.invoke(input)) | ||
|
||
agent.addTool(fsWriteTool.getSpec(), (input: FsWriteParams) => fsWriteTool.invoke(input)) | ||
|
||
agent.addTool(listDirectoryTool.getSpec(), (input: ListDirectoryParams) => listDirectoryTool.invoke(input)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this where we could include queueDescription
if we needed rich output in the tool invocation?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Likely, there appears to be some custom logic built around how this is invoked that will likely have to be moved within these invoke methods.
Problem
reliant on changes in #923
This tool is currently in VSC and should live in Flare.
Solution
FsToolsServer
.License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.