Struct FAgentState
Struct FAgentState
- Defined in File AgentState.h
Inheritance Relationships
Base Type
public FInitialAgentState(Struct FInitialAgentState)
struct FAgentState : public FInitialAgentStateSource: Source/Schola/Training/Public/TrainingDataTypes/AgentState.h
Dependencies: FInitialAgentState, FPoint
Agent state returned after an environment step.
Extends FInitialAgentState with reward, done, and truncated flags following the gym convention.
Public Functions
| Symbol | Details |
|---|---|
FAgentState | Constructor with full state information. |
FAgentState | Default constructor. |
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 – [in] The observation.
-
Reward – [in] The reward value.
-
bTerminated – [in] Whether the episode is complete.
-
bTruncated – [in] Whether the episode was truncated.
-
InInfo – [in] The info dictionary.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InPoint | const TInstancedStruct< FPoint > & | The observation. |
| 2 | — | Reward | float | The reward value. |
| 3 | — | bTerminated | bool | Whether the episode is complete. |
| 4 | — | bTruncated | bool | Whether the episode was truncated. |
| 5 | — | InInfo | const TMap< FString, FString > & | The info dictionary. |
Attributes: inline
Source: Source/Schola/Training/Public/TrainingDataTypes/AgentState.h
FAgentState
inline FAgentState()Default constructor.
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | InPoint | const TInstancedStruct< FPoint > & | The observation. |
| 2 | — | Reward | float | The reward value. |
| 3 | — | bTerminated | bool | Whether the episode is complete. |
| 4 | — | bTruncated | bool | Whether the episode was truncated. |
| 5 | — | InInfo | const TMap< FString, FString > & | The info dictionary. |
Attributes: inline
Source: Source/Schola/Training/Public/TrainingDataTypes/AgentState.h
Public Members
| Symbol | Details |
|---|---|
Reward | The scalar reward received after taking the action. |
bTerminated | Whether the episode has ended due to task completion. |
bTruncated | Whether the episode was truncated (e.g., time limit reached). |
Reward
float Reward = 0.0fThe scalar reward received after taking the action.
bTerminated
bool bTerminated = falseWhether the episode has ended due to task completion.
bTruncated
bool bTruncated = falseWhether the episode was truncated (e.g., time limit reached).