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

xyz.felh.openai.chat.tool.FunctionCall Maven / Gradle / Ivy

There is a newer version: 4.0.2024102501
Show newest version
package xyz.felh.openai.chat.tool;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.*;
import xyz.felh.openai.IOpenAiBean;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FunctionCall implements IOpenAiBean {

    /**
     * The name of the function to call.
     */
    @NonNull
    @JSONField(name = "name")
    @JsonProperty("name")
    private String name;

    /**
     * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
     */
    @NonNull
    @JSONField(name = "arguments")
    @JsonProperty("arguments")
    private String arguments;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy