Skip to content

[Feature request] Add a way to pipe text into a running session #1489

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
skidd-level-100 opened this issue May 17, 2023 · 2 comments
Closed
Labels

Comments

@skidd-level-100
Copy link

I would love a way to inject information into a running session, like detect a string that says "QUERY" and pass it into a script that runs a search on 'QUERY' and dumps the search output into the running session, basically I want to easily inject arbitrary text into a give session. this would allow me to have a set of instructions teaching the AI how to use various tools that I set up I can already see out put by piping ./main into the tail command but I cannot inject input from a different script.

@misutoneko
Copy link

Nice idea! Did you find a way to do it? (GUIs or something?)
I guess for one-shot queries it's possible to use shell wrappers, but it's a bit awkward.

I'm pretty bad at C++ but here's some VERY rudimentary code to try this out.

llamacmd_test.diff.gz

To use it, create the script llamacmd.sh and add QUERY("param1 param2") to your input.

@github-actions github-actions bot added the stale label Mar 25, 2024
Copy link
Contributor

github-actions bot commented Apr 9, 2024

This issue was closed because it has been inactive for 14 days since being marked as stale.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants