Skip to content

IAgent

Interface for inference agents in the Schola framework.

This interface defines the core functionality that all agents must implement, including status management, action space definition, action execution, and observation gathering.

class IAgent

Methods

GetStatus

EAgentStatus GetStatus()

Gets the current status of the agent.


SetStatus

void SetStatus(EAgentStatus NewStatus)

Sets the status of the agent.

Parameters

  • NewStatus (EAgentStatus)

Define

void Define(FInteractionDefinition &OutInteractionDefinition)

Defines the observation and action spaces for this agent.

Parameters

  • OutInteractionDefinition (FInteractionDefinition)

Act

void Act(const FInstancedStruct &InAction)

Executes an action provided to the agent.

Parameters

  • InAction (const FInstancedStruct)

Observe

void Observe(FInstancedStruct &OutObservations)

Gathers the current observations from the agent’s environment.

Parameters

  • OutObservations (FInstancedStruct)

Execute_Act

static inline void Execute_Act(UObject *Obj,
const TInstancedStruct<FPoint> &InAction)

Type-safe wrapper for executing an action with a strongly-typed Point.

Parameters

  • Obj (UObject)

  • InAction (const TInstancedStruct<FPoint>)


Execute_Observe

static inline void Execute_Observe(UObject *Obj,
TInstancedStruct<FPoint> &OutObservations)

Type-safe wrapper for gathering observations with a strongly-typed Point.

Parameters

  • Obj (UObject)

  • OutObservations (TInstancedStruct<FPoint>)

Source: Source/Schola/Public/Agent/AgentInterface.h