Interface EvalCreateResponse.DataSourceConfig.Visitor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • visitCustom

         abstract T visitCustom(EvalCustomDataSourceConfig custom)

        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

      • visitLogs

         abstract T visitLogs(EvalCreateResponse.DataSourceConfig.Logs logs)

        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.

      • unknown

         T unknown(JsonValue json)

        Maps an unknown variant of DataSourceConfig to a value of type T.

        An instance of DataSourceConfig can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.