Class FeedbackProjectLogsItem.Builder
-
- All Implemented Interfaces:
public final class FeedbackProjectLogsItem.BuilderA builder for FeedbackProjectLogsItem.
-
-
Method Summary
-
-
Method Detail
-
id
final FeedbackProjectLogsItem.Builder id(String id)
The id of the project logs event to log feedback for. This is the row
idreturned byPOST /v1/project_logs/{project_id}/insert
-
id
final FeedbackProjectLogsItem.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
comment
final FeedbackProjectLogsItem.Builder comment(String comment)
An optional comment string to log about the project logs event
-
comment
final FeedbackProjectLogsItem.Builder comment(Optional<String> comment)
Alias for calling Builder.comment with
comment.orElse(null).
-
comment
final FeedbackProjectLogsItem.Builder comment(JsonField<String> comment)
Sets Builder.comment to an arbitrary JSON value.
You should usually call Builder.comment with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
expected
final FeedbackProjectLogsItem.Builder expected(JsonValue expected)
The ground truth value (an arbitrary, JSON serializable object) that you'd compare to
outputto determine if youroutputvalue is correct or not
-
metadata
final FeedbackProjectLogsItem.Builder metadata(FeedbackProjectLogsItem.Metadata metadata)
A dictionary with additional data about the feedback. If you have a
user_id, you can log it here and access it in the Braintrust UI. Note, this metadata does not correspond to the main event itself, but rather the audit log attached to the event.
-
metadata
final FeedbackProjectLogsItem.Builder metadata(Optional<FeedbackProjectLogsItem.Metadata> metadata)
Alias for calling Builder.metadata with
metadata.orElse(null).
-
metadata
final FeedbackProjectLogsItem.Builder metadata(JsonField<FeedbackProjectLogsItem.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
scores
final FeedbackProjectLogsItem.Builder scores(FeedbackProjectLogsItem.Scores scores)
A dictionary of numeric values (between 0 and 1) to log. These scores will be merged into the existing scores for the project logs event
-
scores
final FeedbackProjectLogsItem.Builder scores(Optional<FeedbackProjectLogsItem.Scores> scores)
Alias for calling Builder.scores with
scores.orElse(null).
-
scores
final FeedbackProjectLogsItem.Builder scores(JsonField<FeedbackProjectLogsItem.Scores> scores)
Sets Builder.scores to an arbitrary JSON value.
You should usually call Builder.scores with a well-typed Scores value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
source
final FeedbackProjectLogsItem.Builder source(FeedbackProjectLogsItem.Source source)
The source of the feedback. Must be one of "external" (default), "app", or "api"
-
source
final FeedbackProjectLogsItem.Builder source(Optional<FeedbackProjectLogsItem.Source> source)
Alias for calling Builder.source with
source.orElse(null).
-
source
final FeedbackProjectLogsItem.Builder source(JsonField<FeedbackProjectLogsItem.Source> source)
Sets Builder.source to an arbitrary JSON value.
You should usually call Builder.source with a well-typed Source value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tags
final FeedbackProjectLogsItem.Builder tags(List<String> tags)
A list of tags to log
-
tags
final FeedbackProjectLogsItem.Builder tags(Optional<List<String>> tags)
Alias for calling Builder.tags with
tags.orElse(null).
-
tags
final FeedbackProjectLogsItem.Builder tags(JsonField<List<String>> tags)
Sets Builder.tags to an arbitrary JSON value.
You should usually call Builder.tags with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addTag
final FeedbackProjectLogsItem.Builder addTag(String tag)
-
additionalProperties
final FeedbackProjectLogsItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FeedbackProjectLogsItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FeedbackProjectLogsItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FeedbackProjectLogsItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FeedbackProjectLogsItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FeedbackProjectLogsItem build()
Returns an immutable instance of FeedbackProjectLogsItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id()
-
-
-
-