def get_state(self) -> entity_component.ComponentState:
    """Converts the component to JSON data."""
    with self._lock:
      return {
          'current_plan': self._current_plan,
      }
Converts the component to JSON data.
concordia/components/agent/plan.py