The agent capacity interface used for reporting the agent's capacity.

interface IAgentCapacity {
    cpu: {
        cores: number;
        load: number;
    };
    gpu: {
        cores: number;
        load: number;
    };
    macAddress: string;
    memory: {
        available: number;
        total: number;
    };
    storage: {
        available: number;
        total: number;
    };
    version: string;
    vram: {
        available: number;
        total: number;
    };
}

Properties

cpu: {
    cores: number;
    load: number;
}

The agent's CPU capacity.

Type declaration

  • cores: number

    The number of CPU cores.

  • load: number

    The current CPU load.

gpu: {
    cores: number;
    load: number;
}

The agent's GPU capacity.

Type declaration

  • cores: number

    The number of GPU cores.

  • load: number

    The current GPU load.

macAddress: string

The agent's MAC address.

memory: {
    available: number;
    total: number;
}

The agent's memory capacity.

Type declaration

  • available: number

    The available memory.

  • total: number

    The total memory available.

storage: {
    available: number;
    total: number;
}

The agent's storage capacity.

Type declaration

  • available: number

    The available storage.

  • total: number

    The total storage available.

version: string

The agent version.

vram: {
    available: number;
    total: number;
}

The agent's VRAM capacity.

Type declaration

  • available: number

    The available VRAM.

  • total: number

    The total VRAM available.