How b2kproedit/b2kpro-ai-agent works
B2k AI Assistant PRO is a single-file desktop conversational assistant. The main workflow is user text or speech input, command handling and/or AI response generation with conversation history, then an in-app response; optional speech output and desktop actions extend that flow. The README is empty, so capabilities are identified from the source header and sampled code. Several implementation sections are omitted, so uncertain wiring is left out.
Main entry points: main.py Assistant window
Components 18
Desktop interaction
- Assistant window
main.py - Input handling
main.py - Chat display
main.py
Conversation runtime
- Chat history
main.py - AI engine
main.py - Persistent chat log
main.py
Assistant features
- Local commands
main.py - Voice input
main.py - Voice feedback
main.py - Command palette
main.py - Settings panel
main.py - Avatar animation
main.py
External integrations
- Anthropic API
- Speech recognition
- Microphone
- Text-to-speech engine
- Desktop apps and web
Other components
- User
Connections 17
- User → Assistant window: uses
- Assistant window → Input handling: dispatches text
- Input handling → Chat history: records turn
- Input handling → Local commands: checks command
- Input handling → AI engine: requests response
- AI engine → Anthropic API: calls API
- Input handling → Chat display: shows result
- Assistant window → Voice input: starts listening
- Voice input → Microphone: captures audio
- Voice input → Speech recognition: recognizes speech
- Assistant window → Voice feedback: speaks response
- Voice feedback → Text-to-speech engine: synthesizes speech
- Local commands → Desktop apps and web: opens target
- Assistant window → Command palette: opens palette
- Assistant window → Settings panel: opens settings
- Assistant window → Avatar animation: updates expression
- Chat history → Persistent chat log: persists log