# ===== INJECT SESSION STATE ===== state_text = "\nSession State:\n" state_dict = callback_context.state.to_dict() if callback_context.state else {} if state_dict: for key, value in state_dict.items(): if not key.startswith("_"): # Skip internal keys state_text += f" - {key}: {value}\n" else: state_text += " (empty)\n" state_text += "\n" + "="*70 + "\n" __ __