47#ifndef ONNX_MODELRUNNER_ENVIRONMENT_H
48#define ONNX_MODELRUNNER_ENVIRONMENT_H
61 std::map<std::string, Observation &>
obsMap;
Agent class to support ML/RL model inference via ONNX.
std::map< std::string, Observation & > obsMap
void setDone()
SetDone sets the termination condition to true.
bool checkDone()
CheckDone returns true if the termination condition is met at the end of the episode.
void setNextAgent(std::string name)
SetNextAgent sets the name of the next agent to interact with.
virtual Observation & step(Action action)=0
Step function takes an action as input and returns the observation corresponding to the next state.
virtual Observation & reset()=0
Reset function returns the initial observation.
std::string getNextAgent()
GetNextAgent returns the name/ID of the next agent to interact with.
llvm::SmallVector< float, 300 > Observation