Package com.openai.models.evals.runs
Interface RunCreateParams.DataSource.Visitor
-
- All Implemented Interfaces:
public interface RunCreateParams.DataSource.Visitor<T extends Object>
An interface that defines how to map each variant of DataSource to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract T
visitCreateEvalJsonlRun(CreateEvalJsonlRunDataSource createEvalJsonlRun)
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval abstract T
visitCreateEvalCompletionsRun(CreateEvalCompletionsRunDataSource createEvalCompletionsRun)
A CompletionsRunDataSource object describing a model sampling configuration. abstract T
visitCreateEvalResponsesRun(RunCreateParams.DataSource.CreateEvalResponsesRunDataSource createEvalResponsesRun)
A ResponsesRunDataSource object describing a model sampling configuration. T
unknown(JsonValue json)
Maps an unknown variant of DataSource to a value of type T. -
-
Method Detail
-
visitCreateEvalJsonlRun
abstract T visitCreateEvalJsonlRun(CreateEvalJsonlRunDataSource createEvalJsonlRun)
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval
-
visitCreateEvalCompletionsRun
abstract T visitCreateEvalCompletionsRun(CreateEvalCompletionsRunDataSource createEvalCompletionsRun)
A CompletionsRunDataSource object describing a model sampling configuration.
-
visitCreateEvalResponsesRun
abstract T visitCreateEvalResponsesRun(RunCreateParams.DataSource.CreateEvalResponsesRunDataSource createEvalResponsesRun)
A ResponsesRunDataSource object describing a model sampling configuration.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of DataSource to a value of type T.
An instance of DataSource 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.
-
-
-
-