feat: Enhance simple chat command to support multiple input modes including batch files and single messages

This commit is contained in:
scawful
2025-10-04 02:29:15 -04:00
parent 2fb96cbbfd
commit f39ce79048
3 changed files with 40 additions and 5 deletions

View File

@@ -20,6 +20,12 @@ namespace agent {
*
* Provides a basic REPL-style interface without FTXUI dependencies,
* suitable for automated testing and AI agent interactions.
*
* Supports multiple input modes:
* - Interactive REPL (default when stdin is a TTY)
* - Piped input (reads lines from stdin)
* - Batch file (reads lines from file)
* - Single message (programmatic use)
*/
class SimpleChatSession {
public:
@@ -33,6 +39,7 @@ class SimpleChatSession {
std::string* response_out = nullptr);
// Run interactive REPL mode (reads from stdin)
// If stdin is piped, runs in quiet mode
absl::Status RunInteractive();
// Run batch mode from file (one message per line)