io.github.sinri.AiOnHttpMix.azure.openai.chatgpt.request.OpenAIChatGptToolDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of AiOnHttpMix Show documentation
Show all versions of AiOnHttpMix Show documentation
A library to handle LLM APIs over HTTP service.
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