Simple Textual demo that displays an animated "Hello, World" in the terminal.
- Add
.envin the project root:
GEMINI_API_KEY=your_key_here- Use the provider-agnostic AI service:
import {askAi} from './src/services/ai/index.js';
const result = await askAi({
prompt: {
query: 'Suggest a category for this transaction',
json: {description_raw: 'AMZN MKTP CA', amount_cents: -1468}
}
});
console.log(result.answer);askAi returns { provider, model, answer, answerJson, raw }.
python -m pip install -e .
hello-tui