Class EvalCreateResponse.DataSourceConfig.Logs
-
- All Implemented Interfaces:
public final class EvalCreateResponse.DataSourceConfig.LogsA LogsDataSourceConfig which specifies the metadata property of your logs query. This is usually metadata like
usecase=chatbotorprompt-version=v2, etc. The schema returned by this data source config is used to defined what variables are available in your evals.itemandsampleare both defined when using this data source config.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEvalCreateResponse.DataSourceConfig.Logs.BuilderA builder for Logs.
public final classEvalCreateResponse.DataSourceConfig.Logs.SchemaThe json schema for the run data source items. Learn how to build JSON schemas here.
public final classEvalCreateResponse.DataSourceConfig.Logs.MetadataSet 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 EvalCreateResponse.DataSourceConfig.Logs.Schemaschema()The json schema for the run data source items. final JsonValue_type()The type of data source. final Optional<EvalCreateResponse.DataSourceConfig.Logs.Metadata>metadata()Set of 16 key-value pairs that can be attached to an object. final JsonField<EvalCreateResponse.DataSourceConfig.Logs.Schema>_schema()Returns the raw JSON value of schema. final JsonField<EvalCreateResponse.DataSourceConfig.Logs.Metadata>_metadata()Returns the raw JSON value of metadata. final Map<String, JsonValue>_additionalProperties()final EvalCreateResponse.DataSourceConfig.Logs.BuildertoBuilder()final EvalCreateResponse.DataSourceConfig.Logsvalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static EvalCreateResponse.DataSourceConfig.Logs.Builderbuilder()Returns a mutable builder for constructing an instance of Logs. -
-
Method Detail
-
schema
final EvalCreateResponse.DataSourceConfig.Logs.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
logs.Expected to always return the following:
JsonValue.from("logs")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
metadata
final Optional<EvalCreateResponse.DataSourceConfig.Logs.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<EvalCreateResponse.DataSourceConfig.Logs.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<EvalCreateResponse.DataSourceConfig.Logs.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 EvalCreateResponse.DataSourceConfig.Logs.Builder toBuilder()
-
validate
final EvalCreateResponse.DataSourceConfig.Logs validate()
-
builder
final static EvalCreateResponse.DataSourceConfig.Logs.Builder builder()
Returns a mutable builder for constructing an instance of Logs.
The following fields are required:
.schema()
-
-
-
-