docs.unity3d.com
    Show / Hide Table of Contents

    Struct AgentInfo

    Struct that contains all the information for an Agent, including its observations, actions and current status.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    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
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023