[{report "I moved (0,1,0)";I see [ ]. I hear [ ]. I say [ ].}]
PRIMARY_FORMAT=NORMAL
python -c 'import sys;import os;#yourdataframeISstored_AS_env_var_named_df'
export df="""dataFrame= {"lastSpoken": "I moved (0,1,0)","lastHeard": "I see []. moved (0,1,0)","lastSeen": "I see []. moved (0,1,0)","CURPOS": 0,"DESTPOS": 1}"""
SELF INSTRUCTIONS EXAMPLE """move (0,1,0) I moved (0,1,0) I see a green wall and a small vent. I hear footsteps coming from the west. I say The area looks secure. Moving to next task. """
;dataFrame= { "lastSpoken": "I moved (0,1,0) I see a green wall and a small vent. I hear footsteps coming from the west. I say 'The area looks secure. Moving to next task.'", "lastHeard": "", "lastSeen": "I see a green wall and a small vent.", "CURPOS": 1, "DESTPOS": 1 }
class MemorySystem: def init(self): self.memory = []
def add_memory(self, experience):
self.memory.append(experience)
def summarize_memory(self):
summary = {}
for exp in self.memory:
for key, value in exp.items():
if key in summary:
summary[key].append(value)
else:
summary[key] = [value]
return summary
def query_memory(self, query):
results = []
for exp in self.memory:
if query in exp.values():
results.append(exp)
return results
initial_state = { "AgentID": 0, "IQ": 0x7F, "EQ": 0x8A, "MentalStability": 0xC8, "StressResilience": 0x64, "Curiosity": 0x50, "Mood": 0x3C, "EnergyLevel": 0xA0, "Health": 0xFF, "Stamina": 0x8C, "Thirst": 0x46, "Hunger": 0x32, "HeatTolerance": 0x5A, "AltitudeTolerance": 0x78, "TerrainAdaptability": 0x6E, "MBTIType": 0x02, "XCoord": 0x1A, "YCoord": 0x2F, "ZCoord": 0x1E, "Velocity": 0x14, "Heading": 0x3D, "ConditionsID": 0x04, "TerrainID": 0x03, "ActionID": 0x01, "InventoryID": 100 # Example Inventory ID }
agent0 = Agent0(initial_state)
agent0.main_loop(steps=1) Initialize environmental variables env EXP1="{{GOAL}} "; EXP2="#S-o-P"; EXP3="#beavis #WEARS #winger_T-SHIRT is #GREAT_CORNHOLIO"
echo "Turn 1: {{GOAL}} Perception"
: ${EXP1:?"Environment variable EXP1 (goal data) is not set. Please define it before running the script."} && echo "SET EXP1 as SUMMARY UNDERSTANDING OF GOALS: $EXP1; VALUES INCREMENT AS NEW GOALS ARE SET. ENSURE YOU SUPPORT GOALS; ASKING YOURSELF, ALWAYS - 'IS THIS HELPING?'"