com.theokanning.openai.completion.chat.ChatFunction Maven / Gradle / Ivy
package com.theokanning.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