io.github.sashirestela.openai.common.function.FunctionDef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simple-openai Show documentation
Show all versions of simple-openai Show documentation
A Java library to use the OpenAI API in the simplest possible way.
package io.github.sashirestela.openai.common.function;
import io.github.sashirestela.openai.support.JsonSchemaUtil;
import lombok.Builder;
import lombok.Getter;
import lombok.NonNull;
@Getter
@Builder
public class FunctionDef {
@NonNull
private String name;
private String description;
@NonNull
private Class extends Functional> functionalClass;
private Boolean strict;
@Builder.Default
private SchemaConverter schemaConverter = JsonSchemaUtil.defaultConverter;
}