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

@JsonClassDescription("Text part") public class TextPart extends Object implements MessagePart
Represents text content sent to or received from 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("Text content sent to or received from the model") public String getContent()
    • create

      public static TextPart create(String content)