Representing none-fixed state-spaces in RL algorithms

How I can represent an environment for rllib algorithms where I don’t have a fixed representation for states? E.g. the state at one state is a list of size 5 and in another state is a list of size 10. Is that possible at all in the RLLlib? What is the general RL technique for representing states of such environments?