Class CreateCommentRequest

java.lang.Object
com.langfuse.client.resources.comments.types.CreateCommentRequest

public final class CreateCommentRequest extends Object
  • Method Details

    • getProjectId

      public String getProjectId()
      Returns:
      The id of the project to attach the comment to.
    • getObjectType

      public String getObjectType()
      Returns:
      The type of the object to attach the comment to (trace, observation, session, prompt).
    • getObjectId

      public String getObjectId()
      Returns:
      The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.
    • getContent

      public String getContent()
      Returns:
      The content of the comment. May include markdown. Currently limited to 5000 characters.
    • getAuthorUserId

      public Optional<String> getAuthorUserId()
      Returns:
      The id of the user who created the comment.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static CreateCommentRequest.ProjectIdStage builder()