signebedi / gptty

ChatGPT wrapper in your TTY
MIT License
48 stars 7 forks source link

[runtime] add support for question chains / queues #17

Closed signebedi closed 1 year ago

signebedi commented 1 year ago

Users may wish to pass a set of pre-defined questions with the same context (or, maybe even with different contexts) that they can have chat gpt process while they step away from their workstations.

We should add support for a question queue (maybe a file?), or conversely add support for passing multiple questions at runtime gptty run --question "Question 1 here" --question "Question 2 here" --tags 'Your-tag-here'.

A spool / queue file invites the creation of daemonized process to monitor and process that queue....

signebedi commented 1 year ago

write a listener daemon to monitor a question queue It may make sense to daemonize a listener interface that synchronously processes questions in a spool file. Potentially, then, the chat client runs its request asynchronously and awaits a response from the listener daemon.