Core ML behavior model interface for any domain

interface MLBehaviorModel {
    dispose(): void;
    getOutputActions(): string[];
    getRequiredInputs(): string[];
    load(modelPath): Promise<void>;
    predict(state): Promise<AgentAction>;
}

Implemented by

Methods

  • Get list of possible output actions this model can produce

    Returns string[]

    Array of possible action types

  • Get list of required input features for this model

    Returns string[]

    Array of required input field names

  • Load model from specified path or URL

    Parameters

    • modelPath: string

      Path to the model file

    Returns Promise<void>