aethershell 11.0.1

The world's first multi-agent shell with typed functional pipelines and multi-modal AI
// AetherShell TUI Chat Demo
// Launch with: ae tui
//
// This demo showcases the interactive chat interface with AI models
//

// Chat with GPT-4o-mini (OpenAI)
// This example calls a live AI provider. Without one it says so and stops,
// rather than failing partway through with a provider error.
if env("AETHER_AI") == null {
  print("Skipping: set AETHER_AI (openai, ollama, irongate or compat) plus the matching API key to run this example.")
}
if env("AETHER_AI") == null { exit(0) }

ai "openai:gpt-4o-mini" "What are the key features of functional programming?"

// Multi-turn conversation
ai "openai:gpt-4o-mini" "Explain Rust's ownership system"
ai "openai:gpt-4o-mini" "How does it compare to garbage collection?"

// Use Ollama local model
ai "ollama:llama3" "Write a haiku about programming"

// Anthropic Claude
ai "anthropic:claude-3-5-sonnet-20241022" "Explain monads in simple terms"

// The TUI provides:
// - Real-time message display
// - Syntax highlighting for code responses
// - Message history scrolling
// - Multiple AI model support
// - Keyboard shortcuts (see bottom bar)
// - Copy/paste support
//

print "TUI Chat Demo Ready! Launch with: ae tui"