Adaptive-AI-System / agent /reflection.py
lvvignesh2122's picture
Phase 1: Memory agent with ChromaDB - baseline heuristic loop complete
4b7d982
raw
history blame contribute delete
303 Bytes
def generate_reflection(state, action, reward):
# Extremely simple heuristic reflection for the baseline.
if float(reward) < 0.2:
return f"Bad decision: {action}. Likely wasted fuel or ignored bottleneck."
else:
return f"Good decision: {action}. effectively allocated fuel."