All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.sinri.AiOnHttpMix.azure.openai.chatgpt.request.OpenAIChatGptToolDefinition Maven / Gradle / Ivy

The newest version!
package io.github.sinri.AiOnHttpMix.azure.openai.chatgpt.request;

import io.github.sinri.AiOnHttpMix.utils.FunctionToolDefinition;
import io.github.sinri.keel.core.json.JsonifiableEntity;
import io.vertx.core.json.JsonObject;
import org.jetbrains.annotations.NotNull;

public interface OpenAIChatGptToolDefinition extends JsonifiableEntity {
    static OpenAIChatGptToolDefinition wrap(JsonObject jsonObject) {
        return new OpenAIChatGptToolDefinitionImpl(jsonObject);
    }

    static OpenAIChatGptToolDefinition.Builder builder() {
        return new OpenAIChatGptToolDefinition.Builder();
    }

    enum Type {
        function
    }

    class Builder extends FunctionToolDefinition.FunctionToolDefinitionBuilder {

        @Override
        public OpenAIChatGptToolDefinition build() {
            return new OpenAIChatGptToolDefinitionImpl(toJsonObject());
        }

        @Override
        public @NotNull Builder getImplementation() {
            return this;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy