Class EvalCreateResponse.DataSourceConfig.Logs
-
- All Implemented Interfaces:
public final class EvalCreateResponse.DataSourceConfig.Logs
A LogsDataSourceConfig which specifies the metadata property of your logs 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
EvalCreateResponse.DataSourceConfig.Logs.Builder
A builder for Logs.
public final class
EvalCreateResponse.DataSourceConfig.Logs.Schema
The json schema for the run data source items. Learn how to build JSON schemas here.
public final class
EvalCreateResponse.DataSourceConfig.Logs.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 EvalCreateResponse.DataSourceConfig.Logs.Schema
schema()
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.Builder
toBuilder()
final EvalCreateResponse.DataSourceConfig.Logs
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static EvalCreateResponse.DataSourceConfig.Logs.Builder
builder()
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()
-
-
-
-