class

OpenAI::EvalLogsDataSourceConfig

Inherits JSON::Serializable < Reference < Object

A LogsDataSourceConfig which specifies the metadata property of your logs query. This is usually metadata like usecase=chatbot or prompt-version=v2, etc. The schema returned by this data source config is used to defined what variables are available in your evals. item and sample are both defined when using this data source config.

Constructors

new(type_value : EvalLogsDataSourceConfigType = EvalLogsDataSourceConfigType::Logs, metadata : Metadata | Nil = nil, schema : Hash(String, JSON::Any) = Hash(String, JSON::Any).new)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

metadata
Source
metadata=(metadata : Metadata | Nil)
Source
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 logs.

Source
type_value=(type_value : EvalLogsDataSourceConfigType)

The type of data source. Always logs.

Source