Class EvalCreateParams.DataSourceConfig.StoredCompletions
-
- All Implemented Interfaces:
public final class EvalCreateParams.DataSourceConfig.StoredCompletions
A data source config which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbot
orprompt-version=v2
, etc.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
EvalCreateParams.DataSourceConfig.StoredCompletions.Builder
A builder for StoredCompletions.
public final class
EvalCreateParams.DataSourceConfig.StoredCompletions.Metadata
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
Method Summary
Modifier and Type Method Description final JsonValue
_type()
The type of data source. final Optional<EvalCreateParams.DataSourceConfig.StoredCompletions.Metadata>
metadata()
Set of 16 key-value pairs that can be attached to an object. final JsonField<EvalCreateParams.DataSourceConfig.StoredCompletions.Metadata>
_metadata()
Returns the raw JSON value of metadata. final Map<String, JsonValue>
_additionalProperties()
final EvalCreateParams.DataSourceConfig.StoredCompletions.Builder
toBuilder()
final EvalCreateParams.DataSourceConfig.StoredCompletions
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EvalCreateParams.DataSourceConfig.StoredCompletions.Builder
builder()
Returns a mutable builder for constructing an instance of StoredCompletions. -
-
Method Detail
-
_type
final JsonValue _type()
The type of data source. Always
stored_completions
.Expected to always return the following:
JsonValue.from("stored_completions")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
metadata
final Optional<EvalCreateParams.DataSourceConfig.StoredCompletions.Metadata> metadata()
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
_metadata
final JsonField<EvalCreateParams.DataSourceConfig.StoredCompletions.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final EvalCreateParams.DataSourceConfig.StoredCompletions.Builder toBuilder()
-
validate
final EvalCreateParams.DataSourceConfig.StoredCompletions validate()
-
builder
final static EvalCreateParams.DataSourceConfig.StoredCompletions.Builder builder()
Returns a mutable builder for constructing an instance of StoredCompletions.
-
-
-
-