class

OpenAI::EvalCustomDataSourceConfig

Inherits JSON::Serializable < Reference < Object

A CustomDataSourceConfig which specifies the schema of your item and optionally sample namespaces. The response schema defines the shape of the data that will be:

  • Used to define your testing criteria and
  • What data is required when creating a run

Constructors

new(type_value : EvalCustomDataSourceConfigType = EvalCustomDataSourceConfigType::Custom, schema : Hash(String, JSON::Any) = Hash(String, JSON::Any).new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

schema

The json schema for the run data source items. Learn how to build JSON schemas here.

Source
schema=(schema : Hash(String, JSON::Any))

The json schema for the run data source items. Learn how to build JSON schemas here.

Source
type_value

The type of data source. Always custom.

Source
type_value=(type_value : EvalCustomDataSourceConfigType)

The type of data source. Always custom.

Source