paul-schaaf / vshell

v(oice) shell
MIT License
5 stars 0 forks source link

ai commands #11

Open paul-schaaf opened 9 months ago

paul-schaaf commented 9 months ago

e.g. "list all the files starting with 's' in this directory"

is there value to having this built into the shell as opposed to to having it as a talon script? -> having it in the shell would allow editing the command like other input commands

C-Loftus commented 9 months ago

I think this makes sense to integrate with the talon AI tools repository. https://github.com/C-Loftus/talon-ai-tools/ since this seems like a good feature that could be agnostic of the shell. I am thinking a command somewhat like

model shell <user.text> but perhaps this is awkwardly phrased

however if you wanted to have it in the shell you could use any of the functions defined in the module in that repository relatively easily, so you don't have to create new functions.

paul-schaaf commented 9 months ago

thanks Il have a look!

the reason I thought to implement this in the shell is this:

-> having it in the shell would allow editing the command like other input commands

especially for more complex things <user.text> is not sufficient (afaik?) e.g. the 's' in the example

plus youd have a history of ai commands as well that you can reuse and edit if you dont like the initial answer from the model

paul-schaaf commented 9 months ago

but maybe this should be a tool outside the shell that is called from the shell. a small wrapper around the curl openapi call or call to a local model