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

com.alibaba.dashscope.assistants.AssistantFileParam Maven / Gradle / Ivy

There is a newer version: 2.16.9
Show newest version
package com.alibaba.dashscope.assistants;

import com.alibaba.dashscope.base.FlattenHalfDuplexParamBase;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;
import lombok.experimental.SuperBuilder;

@EqualsAndHashCode(callSuper = true)
@Data
@SuperBuilder
public class AssistantFileParam extends FlattenHalfDuplexParamBase {
  @NonNull
  @SerializedName("file_id")
  private String fileId;

  @Override
  public JsonObject getHttpBody() {
    JsonObject requestObject = new JsonObject();
    requestObject.addProperty("file_id", fileId);
    addExtraBody(requestObject);
    return requestObject;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy