This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Control Loop] Thinking with Gemma 3n... | |
| [Control Loop] Sending prompt to model: | |
| You are a control agent for a Mars rover. Based on the current state of the rover, decide what action it should take next. | |
| Your mission is to complete the long running task from the current state, but should prioritize safety and operational efficiency. | |
| Respond only with one of the following function names (as plain text): | |
| ['drop_dirt_sample', 'pick_up_dirt_sample', 'pick_up_scoop', 'pick_up_towel', 'put_scoop_back', 'put_towel_back', 'seek_shelter', 'wipe_solar_panel'] | |
| Current State: | |
| { | |
| "inside_base": true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function sendPush(uid) { | |
| // Get the user from Firestore | |
| const getDeviceTokensPromise = admin.firestore() | |
| .collection('users').doc(uid).get(); | |
| // Get the User profile from Firebase Auth | |
| const getUserProfilePromise = admin.auth().getUser(uid); | |
| Promise.all([getDeviceTokensPromise, getUserProfilePromise]) |