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

xyz.felh.openai.chat.tool.ToolCall 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 ToolCall implements IOpenAiBean {

    /**
     * The ID of the tool call.
     */
    @NonNull
    @JSONField(name = "id")
    @JsonProperty("id")
    private String id;

    /**
     * The type of the tool. Currently, only function is supported.
     * 

* See {@link Type} */ @NonNull @JSONField(name = "type") @JsonProperty("type") private Type type; /** * The function that the model called. *

* See {@link FunctionCall} */ @NonNull @JSONField(name = "function") @JsonProperty("function") private FunctionCall function; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy