com.launchableinc.openai.completion.chat.ChatFunction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Basic java objects for the OpenAI GPT APIs
package com.launchableinc.openai.completion.chat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;
import java.util.function.Function;
@Data
@NoArgsConstructor
public class ChatFunction {
/**
* The name of the function being called.
*/
@NonNull
private String name;
/**
* A description of what the function does, used by the model to choose when and how to call the
* function.
*/
private String description;
/**
* The parameters the functions accepts.
*/
@JsonProperty("parameters")
private Class> parametersClass;
@JsonIgnore
private Function
© 2015 - 2025 Weber Informatics LLC | Privacy Policy