Fixes a problem in "load_tapes" in io.py: For loading a yaml file, yaml.safe_load_all(f) returns a generator, which forces the next line to wrap the loaded records inside another list, which is not necessary.
"kind" attribute added to AgentStep and Observation: This is to fix an inconsistency issue in add_step in TapeView where it is assumed all steps have "kind".
This PR addresses two problems:
io.py
: For loading a yaml file,yaml.safe_load_all(f)
returns a generator, which forces the next line to wrap the loaded records inside another list, which is not necessary.AgentStep
andObservation
: This is to fix an inconsistency issue inadd_step
inTapeView
where it is assumed all steps have "kind".