Grace's text conversation engine. Interactive assembles the system prompt and recent history, calls an OpenAI-compatible chat endpoint, streams response events, and persists completed exchanges through the supplied Memory API.
- Shell owns process lifecycle, system configuration, and runtime wiring.
- Telepathy owns the user-facing console and input/output transport.
- Interactive owns text-turn processing and chat-model requests.
- Memory owns conversation and memory storage APIs.
The package is independent of ROS. Shell's ROS adapter supplies configuration, Memory, a logger, and an event publisher. Interactive does not own database schemas, user-interface transports, model hosting, tool execution, Canvas, or image generation.
ConversationEngine.answer(text, identifier):
- Handles the existing local time/date responses.
- Builds model context from the supplied system prompt, local time, recent conversation history, and the current user message.
- Streams
start,delta,done, orerrorevents to the supplied callback. - Persists a completed user/assistant exchange through the supplied Memory object and reports provider token/latency metrics when available.
The event shape remains compatible with Shell's current Telepathy WebUI stream.
The Memory object is expected to provide recent() and add_exchange().
For the AGi local workspace layout, Shell installs this package from the
neighboring checkout using pip install -r requirements.txt:
cd ~/AGi/AIVA
git clone https://github.com/AGi-robot/interactive.git interactive
.venv/bin/python -m pip install -r requirements.txtThe Python distribution is agi-interactive, imported as agi_interactive.
This repository is AGPL-3.0-only. The conversation-turn implementation was
extracted and adapted from the text-chat path in
AGi-robot/shell's aiva_chat ROS adapter. Canvas and Imaging code remain
outside this package.