Struct AgentInfo
Struct that contains all the information for an Agent, including its observations, actions and current status.
Inherited Members
Namespace: Unity.MLAgents
Syntax
public struct AgentInfo
Fields
discreteActionMasks
For discrete control, specifies the actions that the agent cannot take.
An element of the mask array is true
if the action is prohibited.
Declaration
public bool[] discreteActionMasks
Field Value
Type | Description |
---|---|
Boolean[] |
done
Whether the agent is done or not.
Declaration
public bool done
Field Value
Type | Description |
---|---|
Boolean |
episodeId
Episode identifier each agent receives at every reset. It is used to separate between different agents in the environment.
Declaration
public int episodeId
Field Value
Type | Description |
---|---|
Int32 |
groupId
MultiAgentGroup identifier.
Declaration
public int groupId
Field Value
Type | Description |
---|---|
Int32 |
groupReward
The current group reward received by the agent.
Declaration
public float groupReward
Field Value
Type | Description |
---|---|
Single |
maxStepReached
Whether the agent has reached its max step count for this episode.
Declaration
public bool maxStepReached
Field Value
Type | Description |
---|---|
Boolean |
reward
The current agent reward.
Declaration
public float reward
Field Value
Type | Description |
---|---|
Single |
storedActions
Keeps track of the last actions taken by the Brain.
Declaration
public ActionBuffers storedActions
Field Value
Type | Description |
---|---|
ActionBuffers |
Methods
ClearActions()
Declaration
public void ClearActions()
CopyActions(ActionBuffers)
Declaration
public void CopyActions(ActionBuffers actionBuffers)
Parameters
Type | Name | Description |
---|---|---|
ActionBuffers | actionBuffers |