java.lang.Object
io.agentscope.core.tracing.telemetry.model.FilePart
All Implemented Interfaces:
MessagePart

@JsonClassDescription("File part") public class FilePart extends Object implements MessagePart
Represents an external referenced file sent to the model by file id.
  • Method Details

    • getType

      @JsonPropertyDescription("The type of the content captured in this part") public String getType()
      Description copied from interface: MessagePart
      Get the type of this message part.
      Specified by:
      getType in interface MessagePart
      Returns:
      the type string
    • getFileId

      @JsonPropertyDescription("An identifier referencing a file that was pre-uploaded to the provider") public String getFileId()
    • getMimeType

      @JsonPropertyDescription("The IANA MIME type of the attached data") public String getMimeType()
    • getModality

      @JsonPropertyDescription("The general modality of the data if it is known. Instrumentations SHOULD also set the mimeType field if the specific type is known") public String getModality()
    • create

      public static FilePart create(String fileId, String mimeType, String modality)