}
protected void onAgentStep() {
double reward = network.getDouble();
Observation observation = network.getObservation();
Action action = agent.agent_step(reward, observation);
int size = Network.sizeOf(action);
network.clearSendBuffer();
network.putInt(Network.kAgentStep);
network.putInt(size);