package com.sonic.cow.client.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonIgnoreProperties(ignoreUnknown = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ContentRequest {

    /**
     * 类型：input_text、input_image
     */
    private String type;

    /**
     * 文本内容（当 type = "input_text" 时，填写内容）
     */
    private String text;

    /**
     * 图片内容（当 type = "input_image" 时，填写内容）
     */
    @JsonProperty("image_url")
    private String imageUrl;

}
