com.launchableinc.openai.messages.content.Annotation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
Basic java objects for the OpenAI GPT APIs
package com.launchableinc.openai.messages.content;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* An annotation for a text Message
*
* https://platform.openai.com/docs/api-reference/messages/object
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Annotation {
/**
* The type of annotation, either file_citation or file_path
*/
String type;
/**
* The text in the message content that needs to be replaced
*/
String text;
/**
* File citation details, only present when type == file_citation
*/
@JsonProperty("file_citation")
FileCitation fileCitation;
/**
* File path details, only present when type == file_path
*/
@JsonProperty("file_path")
FilePath filePath;
@JsonProperty("start_index")
int startIndex;
@JsonProperty("end_index")
int endIndex;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy