Navigation
API > API/Plugins > API/Plugins/MLAdapter > API/Plugins/MLAdapter/Agents
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMLAdapterAgent
- UMLAdapterAgent_Inference
References
| Module | MLAdapter |
| Header | /Engine/Plugins/AI/MLAdapter/Source/MLAdapter/Public/Agents/MLAdapterAgent_Inference.h |
| Include | #include "Agents/MLAdapterAgent_Inference.h" |
Syntax
UCLASS (Blueprintable, EditInlineNew)
class UMLAdapterAgent_Inference : public UMLAdapterAgent
Remarks
Inference agents have a neural network that can process senses and output actuations via their Think method. You can create a blueprint of this class to easily wire-up an agent that functions entirely inside the Unreal Engine.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TSharedPtr< UE::NNE::IModelInstanceCPU > | Brain | The neural network controlling this agent. | |
| TObjectPtr< UNNEModelData > | ModelData | Reference to neural network asset data. |
Overridden from UMLAdapterAgent
| Type | Name | Description | |
|---|---|---|---|
| void | Think
(
const float DeltaTime |
Process observations from the sensors with the neural network and populate the actuators with data. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | Tries to load the neural network from the ModelDataPath. |
See Also
UMLAdapterNoRPCManager - we do not usually need to open the RPC interface if we are exclusively using inference agents.