pub struct CreateCommentRequestBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> CreateCommentRequestBuilder<S>
impl<S: State> CreateCommentRequestBuilder<S>
Sourcepub fn build(self) -> CreateCommentRequestwhere
S: IsComplete,
pub fn build(self) -> CreateCommentRequestwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn project_id(
self,
value: String,
) -> CreateCommentRequestBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
pub fn project_id(
self,
value: String,
) -> CreateCommentRequestBuilder<SetProjectId<S>>where
S::ProjectId: IsUnset,
Required.
The id of the project to attach the comment to.
Sourcepub fn object_type(
self,
value: String,
) -> CreateCommentRequestBuilder<SetObjectType<S>>where
S::ObjectType: IsUnset,
pub fn object_type(
self,
value: String,
) -> CreateCommentRequestBuilder<SetObjectType<S>>where
S::ObjectType: IsUnset,
Required.
The type of the object to attach the comment to (trace, observation, session, prompt).
Sourcepub fn object_id(
self,
value: String,
) -> CreateCommentRequestBuilder<SetObjectId<S>>where
S::ObjectId: IsUnset,
pub fn object_id(
self,
value: String,
) -> CreateCommentRequestBuilder<SetObjectId<S>>where
S::ObjectId: IsUnset,
Required.
The id of the object to attach the comment to. If this does not reference a valid existing object, an error will be thrown.
Sourcepub fn content(
self,
value: String,
) -> CreateCommentRequestBuilder<SetContent<S>>where
S::Content: IsUnset,
pub fn content(
self,
value: String,
) -> CreateCommentRequestBuilder<SetContent<S>>where
S::Content: IsUnset,
Required.
The content of the comment. May include markdown. Currently limited to 5000 characters.
Sourcepub fn object_start_time(
self,
value: Option<DateTime<FixedOffset>>,
) -> CreateCommentRequestBuilder<SetObjectStartTime<S>>where
S::ObjectStartTime: IsUnset,
pub fn object_start_time(
self,
value: Option<DateTime<FixedOffset>>,
) -> CreateCommentRequestBuilder<SetObjectStartTime<S>>where
S::ObjectStartTime: IsUnset,
Optional (Some / Option setters). 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.
Sourcepub fn maybe_object_start_time(
self,
value: Option<Option<DateTime<FixedOffset>>>,
) -> CreateCommentRequestBuilder<SetObjectStartTime<S>>where
S::ObjectStartTime: IsUnset,
pub fn maybe_object_start_time(
self,
value: Option<Option<DateTime<FixedOffset>>>,
) -> CreateCommentRequestBuilder<SetObjectStartTime<S>>where
S::ObjectStartTime: IsUnset,
Optional (Some / Option setters). 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.