Skip to content

UExternalGymConnector

Abstract class for connectors that communicate with external training processes.

Provides asynchronous communication with external training systems running in separate processes. Derived classes implement specific communication protocols (e.g., sockets, HTTP).

Subclassed by URPCGymConnector

class UExternalGymConnector : public UAbstractGymConnector

Methods

UExternalGymConnector

UExternalGymConnector()

Default constructor for external gym connectors.


RequestStateUpdate

inline virtual TFuture<FTrainingStateUpdate *> RequestStateUpdate()

Request the next training state update from the external process.


ResolveEnvironmentStateUpdate

virtual FTrainingStateUpdate *ResolveEnvironmentStateUpdate() override

Resolve the environment state update, blocking if necessary.

Attributes

ExternalSettings

FExternalGymConnectorSettings ExternalSettings

Settings for external communication (timeouts, etc.).


bFirstStep

bool bFirstStep = true

Flag to track if this is the first step after connection/reconnection.

Source: Source/ScholaTraining/Public/GymConnectors/ExternalGymConnector.h