SdkProtocolVersion.java

/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------------------------------------------*/

// Code generated by update-protocol-version.ts. DO NOT EDIT.

package com.github.copilot.sdk;

/**
 * Provides the SDK protocol version. This must match the version expected by
 * the copilot-agent-runtime server.
 *
 * @since 1.0.0
 */
public enum SdkProtocolVersion {

    LATEST(2);

    private int versionNumber;

    private SdkProtocolVersion(int versionNumber) {
        this.versionNumber = versionNumber;
    }

    public int getVersionNumber() {
        return this.versionNumber;
    }

    /**
     * Gets the SDK protocol version.
     *
     * @return the protocol version
     */
    public static int get() {
        return LATEST.getVersionNumber();
    }
}