# Accessing other agents' rewards and actions in ppo loss for multi agent environment

**URL:** <https://discuss.ray.io/t/accessing-other-agents-rewards-and-actions-in-ppo-loss-for-multi-agent-environment/13396>\
**Category:** RLlib\
**Created:** [January 12, 2024, 8:05am UTC](https://discuss.ray.io/t/accessing-other-agents-rewards-and-actions-in-ppo-loss-for-multi-agent-environment/13396 "2024-01-12T08:05:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miladink](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/miladink/32/5595_2.png) [@miladink](https://discuss.ray.io/u/miladink)\
**Post date:** [January 12, 2024, 8:05am UTC](https://discuss.ray.io/t/accessing-other-agents-rewards-and-actions-in-ppo-loss-for-multi-agent-environment/13396/1 "2024-01-12T08:05:19Z")

</div>

**How severe does this issue affect your experience of using Ray?**

- High: It blocks me to complete my task.

Hi All! I have a multi agent environment. Currently, each agent is being trained via PPO. They only receive the reward, observation, and action they have token in the loss function. However, I am trying to change the PPO to another algorithm I am researching on so it also take into account the rewards and actions of others. But, I don’t know how I can access it or even if this is possible at RLlib.
