Class CreateCommentRequest.Builder
- All Implemented Interfaces:
CreateCommentRequest._FinalStage,CreateCommentRequest.ContentStage,CreateCommentRequest.ObjectIdStage,CreateCommentRequest.ObjectTypeStage,CreateCommentRequest.ProjectIdStage
- Enclosing class:
CreateCommentRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) authorUserId(String authorUserId) The id of the user who created the comment.authorUserId(Optional<String> authorUserId) The id of the user who created the comment.build()The content of the comment.from(CreateCommentRequest other) The id of the object to attach the comment to.objectType(String objectType) The type of the object to attach the comment to (trace, observation, session, prompt).The id of the project to attach the comment to.
-
Method Details
-
from
- Specified by:
fromin interfaceCreateCommentRequest.ProjectIdStage
-
projectId
The id of the project to attach the comment to.
The id of the project to attach the comment to.
- Specified by:
projectIdin interfaceCreateCommentRequest.ProjectIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
objectType
The type of the object to attach the comment to (trace, observation, session, prompt).
The type of the object to attach the comment to (trace, observation, session, prompt).
- Specified by:
objectTypein interfaceCreateCommentRequest.ObjectTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
objectId
The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.
The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.
- Specified by:
objectIdin interfaceCreateCommentRequest.ObjectIdStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
content
The content of the comment. May include markdown. Currently limited to 5000 characters.
The content of the comment. May include markdown. Currently limited to 5000 characters.
- Specified by:
contentin interfaceCreateCommentRequest.ContentStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorUserId
The id of the user who created the comment.
- Specified by:
authorUserIdin interfaceCreateCommentRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
authorUserId
The id of the user who created the comment.
- Specified by:
authorUserIdin interfaceCreateCommentRequest._FinalStage
-
build
- Specified by:
buildin interfaceCreateCommentRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceCreateCommentRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceCreateCommentRequest._FinalStage
-