Skip to content

FAgentState

Agent state returned after an environment step.

Extends FInitialAgentState with reward, done, and truncated flags following the gym convention.

struct FAgentState : public FInitialAgentState

Methods

FAgentState

inline FAgentState(const TInstancedStruct<FPoint> &InPoint, float Reward,
bool bTerminated, bool bTruncated,
const TMap<FString, FString> &InInfo)

Constructor with full state information.

Parameters

  • InPoint (const TInstancedStruct<FPoint>)

  • Reward (float)

  • bTerminated (bool)

  • bTruncated (bool)

  • InInfo (const TMap<FString, FString>)


FAgentState

inline FAgentState()

Default constructor.

Attributes

Reward

float Reward = 0.0f

The scalar reward received after taking the action.


bTerminated

bool bTerminated = false

Whether the episode has ended due to task completion.


bTruncated

bool bTruncated = false

Whether the episode was truncated (e.g., time limit reached).

Source: Source/ScholaTraining/Public/TrainingDataTypes/AgentState.h