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

@JsonClassDescription("Uri part") public class UriPart extends Object implements MessagePart
Represents an external referenced file sent to the model by URI.
  • 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
    • getUri

      @JsonPropertyDescription("A URI referencing attached data. It should not be a base64 data URL, which should use the `blob` part instead. The URI may use a scheme known to the provider api (e.g. `gs://bucket/object.png`), or be a publicly accessible location") public String getUri()
    • 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 UriPart create(String uri, String mimeType, String modality)