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

@JsonClassDescription("Blob part") public class BlobPart extends Object implements MessagePart
Represents blob binary data sent inline to the model.
  • 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
    • getContent

      @JsonPropertyDescription("Raw bytes of the attached data. This field SHOULD be encoded as a base64 string when serialized to JSON") public String getContent()
    • 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 BlobPart create(String content, String mimeType, String modality)