
org.devlive.sdk.openai.entity.beta.AssistantsEntity Maven / Gradle / Ivy
package org.devlive.sdk.openai.entity.beta;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.common.collect.Sets;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.devlive.sdk.common.exception.ParamException;
import org.devlive.sdk.openai.model.CompletionModel;
import java.util.Map;
import java.util.Set;
@Data
@Builder
@ToString
@NoArgsConstructor
@AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class AssistantsEntity
{
@JsonProperty(value = "id")
private String id;
/**
* ID of the model to use. You can use the List models API to see all of your available models, or see our Model overview for descriptions of them.
* 要使用的模型的 ID。您可以使用列表模型 API 查看所有可用模型,或查看我们的模型概述以获取这些模型的说明。
*/
@JsonProperty(value = "model")
private String model;
/**
* The name of the assistant. The maximum length is 256 characters.
* 助理的名称。最大长度为 256 个字符。
*/
@JsonProperty(value = "name")
private String name;
/**
* The description of the assistant. The maximum length is 512 characters.
* 助手的描述。最大长度为 512 个字符。
*/
@JsonProperty(value = "description")
private String description;
/**
* The system instructions that the assistant uses. The maximum length is 32768 characters.
* 助手使用的系统指令。最大长度为 32768 个字符。
*/
@JsonProperty(value = "instructions")
private String instructions;
/**
* A list of tool enabled on the assistant. There can be a maximum of 128 tools per assistant. Tools can be of types code_interpreter, retrieval, or function.
* 助手上启用的工具列表。每个助手最多可以有 128 个工具。工具可以是code_interpreter、检索或函数类型。
*/
@JsonProperty(value = "tools")
private Set
© 2015 - 2025 Weber Informatics LLC | Privacy Policy