Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The XRP software platform is an integrated development environment where you can

### Backend Setup (AI Assistant)

The backend provides the XRPCode Buddy AI assistant functionality through a secure FastAPI proxy.
The backend provides the XRP Buddy AI assistant functionality through a secure FastAPI proxy.

1. **Navigate to backend directory**
```bash
Expand Down Expand Up @@ -88,9 +88,9 @@ source venv/bin/activate # or venv\Scripts\activate on Windows
python main.py
```

## 🤖 XRPCode Buddy - AI Assistant
## 🤖 XRP Buddy - AI Assistant

XRP Web includes **XRPCode Buddy**, an intelligent AI assistant powered by Google Gemini that provides contextual help with your robotics projects. The AI automatically has access to:
XRP Web includes **XRP Buddy**, an intelligent AI assistant powered by Google Gemini that provides contextual help with your robotics projects. The AI automatically has access to:

- **📚 Complete XRP Documentation** - All API references, tutorials, and programming guides
- **💻 Your Current Code** - Both Python files and Blockly visual programs you have open
Expand All @@ -116,7 +116,7 @@ XRP Web includes **XRPCode Buddy**, an intelligent AI assistant powered by Googl

### AI Model & Architecture

**XRPCode Buddy** uses:
**XRP Buddy** uses:
- **Model**: Gemini 2.5 Flash - Google's latest fast and efficient model optimized for real-time conversations and code assistance
- **Architecture**: FastAPI backend proxy with specialized educational prompts
- **Security**: API keys stored server-side, not exposed to browser
Expand Down
4 changes: 2 additions & 2 deletions docs/XRP Software Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ thirdparty -->rd
@enduml
```

## AI Assistant (XRP Code Buddy)
## AI Assistant (XRP Buddy)

The XRP Web Development Application integrates an educational AI Assistant, "XRP Code Buddy," powered by the Gemini API. This assistant is designed to guide students through robotics programming challenges using best teaching practices rather than simply providing solutions.
The XRP Web Development Application integrates an educational AI Assistant, "XRP Buddy," powered by the Gemini API. This assistant is designed to guide students through robotics programming challenges using best teaching practices rather than simply providing solutions.

### AI Interaction Workflow

Expand Down
2 changes: 1 addition & 1 deletion src/components/chat/ai-chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function AIChat() {
role: 'assistant',
content: `Error: ${error instanceof Error ? error.message : 'Failed to get response'}`,
timestamp: new Date(),
model: modelName || 'XRPCode Buddy',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can use the translated string from the localized file for this.

model: modelName || 'XRP Buddy',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is a non display string, please use a constant in the constants file. If it is a display name, use the localized file

};

setMessages(prev => [...prev, errorMessage]);
Expand Down
2 changes: 1 addition & 1 deletion src/components/chat/chat-message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const ChatMessageComponent: React.FC<ChatMessageProps> = ({ message }) => {
{message.role === 'user' ? 'U' : 'XRP'}
</div>
<span className="text-xs font-medium text-mountain-mist-600">
{message.role === 'user' ? 'You' : 'XRP Code Buddy'}
{message.role === 'user' ? 'You' : 'XRP Buddy'}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as previous comemts

</span>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/utils/gemini-client.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ChatMessage } from './types';

/**
* Simplified Gemini client for XRP Code Buddy
* Simplified Gemini client for XRP Buddy
* All AI configuration and teaching guidelines are now handled by the backend
*/
export class GeminiClient {
Expand Down Expand Up @@ -67,12 +67,12 @@ export class GeminiClient {
const response = await fetch(`${this.backendUrl}/model-info`);
if (response.ok) {
const data = await response.json();
return data.model_name || 'XRPCode Buddy';
return data.model_name || 'XRP Buddy';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

}
} catch (error) {
console.warn('Failed to fetch model name from backend:', error);
}
return 'XRPCode Buddy'; // Fallback
return 'XRP Buddy'; // Fallback
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/utils/gemini-context-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import TerminalMgr from '@/managers/terminalmgr';
import { EditorType } from './types';

/**
* Simplified context loader for XRP Code Buddy
* Simplified context loader for XRP Buddy
* Only handles gathering dynamic context (editor/terminal) since documentation is loaded at backend startup
*/
export class GeminiContextLoader {
Expand Down
12 changes: 6 additions & 6 deletions src/utils/i18n/locales/en/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"selectUserOption": "Select a User",
"myview": "My View",
"settings": "Settings",
"ai-chat": "AI Buddy",
"ai-chat-help": "Chat with XRPCode Buddy",
"ai-chat": "XRP Buddy",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also change the es.json

"ai-chat-help": "Chat with XRP Buddy",
"user-folder": "User Folder Name",
"google-drive-folder": "Google Drive Folder Name",
"googleLoginTooltip": "Sign in with your Google account to access files stored in Google Drive.",
Expand Down Expand Up @@ -163,18 +163,18 @@
"stop": "STOP",
"stopRunningProgram": "Stop Running Program...",
"aiChat": {
"buddyName": "XRPCode Buddy",
"buddyName": "XRP Buddy",
"poweredBy": "Powered by Gemini",
"docsLoaded": "Documentation loaded",
"loadingDocs": "Loading docs...",
"failedToLoadDocs": "Failed to load docs",
"noContext": "No context",
"startConversation": "Start a conversation",
"startConversationHelper": "Ask questions, get help with code, or learn XRP robotics with XRPCode Buddy.",
"placeholder": "Message XRPCode Buddy...",
"startConversationHelper": "Ask questions, get help with code, or learn XRP robotics with XRP Buddy.",
"placeholder": "Message XRP Buddy...",
"stopGeneration": "Stop generation",
"sendMessage": "Send message",
"buddyTyping": "XRPCode Buddy is typing..."
"buddyTyping": "XRP Buddy is typing..."
},
"editor": {
"saveconnect": "To save your file, please connect to your XRP or login to your Google Drive account."
Expand Down