hsahovic / poke-env

A python interface for training Reinforcement Learning bots to battle on pokemon showdown
https://poke-env.readthedocs.io/
MIT License
283 stars 93 forks source link

Extracting raw battle data during battle #566

Open BaiqingL opened 3 weeks ago

BaiqingL commented 3 weeks ago

Is it possible to extract the battle history during the middle of a battle? This scenario would help with prompting LLMs for context, and is it possible to do right now, thanks!

caymansimpson commented 6 days ago

You can do that through the Observations class, found here. They store the battle outputs in the events property: https://github.com/hsahovic/poke-env/blob/master/src/poke_env/environment/observation.py