AIStateRecordable

struct AIStateRecordable : Codable

A data structure that represents a recorded state assessment and its resulting action.

This is typically used to construct a state recording to be fed into a machine learning model for the Teal Converse agent.

  • The CSV file headers for this structure.

    Declaration

    Swift

    static let csvHeaders: [String]
  • Can the agent escape?

    Declaration

    Swift

    let canEscape: Bool
  • Is the agent near the exit?

    Declaration

    Swift

    let nearExit: Bool
  • Is the agent near an input device?

    Declaration

    Swift

    let nearInput: Bool
  • Is the closest input nearby active?

    Declaration

    Swift

    let inputActive: Bool
  • Is the closest input device relevant to opening the exit?

    Declaration

    Swift

    let inputRelevant: Bool
  • Does the closest input require a heavy object?

    Declaration

    Swift

    let requiresObject: Bool
  • Does the closest input require a specific costume?

    Declaration

    Swift

    let requiresCostume: Bool
  • Is the agent wearing the right costume?

    Declaration

    Swift

    let wearingCostume: Bool
  • Does the agent have an object in its inventory?

    Declaration

    Swift

    let hasObject: Bool
  • Is the agent near an object?

    Declaration

    Swift

    let nearObject: Bool
  • Are all of the inputs that send signals to the exit door active?

    Declaration

    Swift

    let allInputsActive: Bool
  • The action that will be performed from this assessement.

    Declaration

    Swift

    let action: String
  • Construct a recordable state.

    Declaration

    Swift

    init(from assessment: AIAbstractGameState.Assessement, with result: String)

    Parameters

    assessment

    The assessment to use

    result

    The resulting action from the assessment