Closed SirSkaro closed 4 months ago
Nice, was going to ask for this one as well. @hsahovic is there any way you'd like to do this? I was thinking about just adding a flag that stores all unparsed logs in a vector of strings as a property of the battle object
This is submitted in the new PR. You can check out the new battle.observations property. Battle Logs are stored in the events property of each Observation object
Thanks @caymansimpson !
I've noticed there have been a few attempts to create LLM agents using this
poke-env
. A more recent one is PokeLLMon. However, in their project (not saying I condone this at all), they literally copy/pasted all ofpoke-env
to modifyPlayer
to get access to the Showdown message.A more appropriate, less drastic approach would be to extend
Player
and override_handle_battle_message
(or some other internal function), but this obviously isn't ideal either because you're overriding an internal function.So this is a feature request is to add the raw Showdown message to the
Battle
object (thebattle_info
orsplit_messages
data inPlayer#_handle_battle_message
) to better support LLM agents.