Skip to content

Struct FInteractionDefinition

Struct FInteractionDefinition

  • Defined in File InteractionDefinition.h
struct FInteractionDefinition

Source: Source/Schola/Public/Common/InteractionDefinition.h

Dependencies: FSpace

Struct containing a definition of the inputs and outputs of a policy.

This structure defines the observation and action spaces for an agent, specifying what observations it can receive and what actions it can produce. This is fundamental to defining the interface between an agent and its environment.


Public Functions

SymbolDetails
FInteractionDefinitionCopy constructor.
FInteractionDefinitionConstructor with observation and action space parameters.
FInteractionDefinitionDefault constructor.

FInteractionDefinition

inline FInteractionDefinition(const FInteractionDefinition &Other)

Copy constructor.

Parameters

Other – [in] The interaction definition to copy from.

#DirectionNameTypeDescription
1Otherconst FInteractionDefinition &The interaction definition to copy from.

Attributes: inline

Source: Source/Schola/Public/Common/InteractionDefinition.h

FInteractionDefinition

inline FInteractionDefinition(const TInstancedStruct<FSpace> &InObsSpaceDefn,
const TInstancedStruct<FSpace> &InActionSpaceDefn)

Constructor with observation and action space parameters.

Parameters

  • InObsSpaceDefn – [in] The observation space definition.

  • InActionSpaceDefn – [in] The action space definition.

#DirectionNameTypeDescription
1Otherconst FInteractionDefinition &The interaction definition to copy from.

Attributes: inline

Source: Source/Schola/Public/Common/InteractionDefinition.h

FInteractionDefinition

inline FInteractionDefinition()

Default constructor.

#DirectionNameTypeDescription
1Otherconst FInteractionDefinition &The interaction definition to copy from.

Attributes: inline

Source: Source/Schola/Public/Common/InteractionDefinition.h


Public Members

SymbolDetails
ObsSpaceDefnDefines the range of values that the corresponding agent accepts as observations.
ActionSpaceDefnDefines the range of values that are output by this agent’s policy as actions.

ObsSpaceDefn

TInstancedStruct<FSpace> ObsSpaceDefn

Defines the range of values that the corresponding agent accepts as observations.

This space describes the structure and valid values for observations that the agent receives from its environment.


ActionSpaceDefn

TInstancedStruct<FSpace> ActionSpaceDefn

Defines the range of values that are output by this agent’s policy as actions.

This space describes the structure and valid values for actions that the agent can produce and send to its environment.