Skip to content

Interface: Event

An event received from the Cogment framework.

Type parameters

Name Type Description
ObservationT Message Protobuf message type of the observation space.
FeedbackT Message Protobuf message type of the feedback space.

Properties

message

Optional message: CogMessage

The next message encoded as a protobuf message.

Defined in: cogment/types/Event.ts:43


observation

Optional observation: ObservationT

The next observation from the environment encoded as a protobuf message.

Defined in: cogment/types/Event.ts:47


reward

Optional reward: FeedbackT

The next reward encoded as a protobuf message.

Defined in: cogment/types/Event.ts:51


tickId

Optional tickId: number

The tick id of this event.

Defined in: cogment/types/Event.ts:55


timestamp

Optional timestamp: number

Epoch timestamp in milliseconds when this event was generated by the Cogment framework.

Defined in: cogment/types/Event.ts:59


type

Optional type: EventType

The trial state at the tick id of this event.

Defined in: cogment/types/Event.ts:63