pub struct CreateCommentRequest {
pub project_id: String,
pub object_type: String,
pub object_id: String,
pub content: String,
pub author_user_id: Option<Option<String>>,
pub object_start_time: Option<Option<DateTime<FixedOffset>>>,
}Fields§
§project_id: StringThe id of the project to attach the comment to.
object_type: StringThe type of the object to attach the comment to (trace, observation, session, prompt).
object_id: StringThe id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.
content: StringThe content of the comment. May include markdown. Currently limited to 5000 characters.
The id of the user who created the comment. Must be a member of the organization that owns the project, otherwise an error will be thrown.
object_start_time: Option<Option<DateTime<FixedOffset>>>The start time of the referenced object (for observations, the observation’s start time). Optional performance hint - when provided, Langfuse narrows the lookup to validate the reference faster. It only affects speed - an incorrect or omitted value never changes the result.
Implementations§
Source§impl CreateCommentRequest
impl CreateCommentRequest
Sourcepub fn builder() -> CreateCommentRequestBuilder
pub fn builder() -> CreateCommentRequestBuilder
Create an instance of CreateCommentRequest using the builder syntax