Class EvalStoredCompletionsDataSourceConfig
-
- All Implemented Interfaces:
public final class EvalStoredCompletionsDataSourceConfig
A StoredCompletionsDataSourceConfig which specifies the metadata property of your stored completions query. This is usually metadata like
usecase=chatbot
orprompt-version=v2
, etc. The schema returned by this data source config is used to defined what variables are available in your evals.item
andsample
are both defined when using this data source config.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
EvalStoredCompletionsDataSourceConfig.Builder
A builder for EvalStoredCompletionsDataSourceConfig.
public final class
EvalStoredCompletionsDataSourceConfig.Schema
The json schema for the run data source items. Learn how to build JSON schemas here.
public final class
EvalStoredCompletionsDataSourceConfig.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 EvalStoredCompletionsDataSourceConfig.Schema
schema()
The json schema for the run data source items. final JsonValue
_type()
The type of data source. final Optional<EvalStoredCompletionsDataSourceConfig.Metadata>
metadata()
Set of 16 key-value pairs that can be attached to an object. final JsonField<EvalStoredCompletionsDataSourceConfig.Schema>
_schema()
Returns the raw JSON value of schema. final JsonField<EvalStoredCompletionsDataSourceConfig.Metadata>
_metadata()
Returns the raw JSON value of metadata. final Map<String, JsonValue>
_additionalProperties()
final EvalStoredCompletionsDataSourceConfig.Builder
toBuilder()
final EvalStoredCompletionsDataSourceConfig
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EvalStoredCompletionsDataSourceConfig.Builder
builder()
Returns a mutable builder for constructing an instance of EvalStoredCompletionsDataSourceConfig. -
-
Method Detail
-
schema
final EvalStoredCompletionsDataSourceConfig.Schema schema()
The json schema for the run data source items. Learn how to build JSON schemas here.
-
_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<EvalStoredCompletionsDataSourceConfig.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.
-
_schema
final JsonField<EvalStoredCompletionsDataSourceConfig.Schema> _schema()
Returns the raw JSON value of schema.
Unlike schema, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<EvalStoredCompletionsDataSourceConfig.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 EvalStoredCompletionsDataSourceConfig.Builder toBuilder()
-
validate
final EvalStoredCompletionsDataSourceConfig validate()
-
builder
final static EvalStoredCompletionsDataSourceConfig.Builder builder()
Returns a mutable builder for constructing an instance of EvalStoredCompletionsDataSourceConfig.
The following fields are required:
.schema()
-
-
-
-