Package com.openai.models.evals.runs
Interface RunCreateResponse.DataSource.Visitor
-
- All Implemented Interfaces:
public interface RunCreateResponse.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
visitJsonl(CreateEvalJsonlRunDataSource jsonl)
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval abstract T
visitCompletions(CreateEvalCompletionsRunDataSource completions)
A CompletionsRunDataSource object describing a model sampling configuration. abstract T
visitResponses(RunCreateResponse.DataSource.Responses responses)
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
-
visitJsonl
abstract T visitJsonl(CreateEvalJsonlRunDataSource jsonl)
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval
-
visitCompletions
abstract T visitCompletions(CreateEvalCompletionsRunDataSource completions)
A CompletionsRunDataSource object describing a model sampling configuration.
-
visitResponses
abstract T visitResponses(RunCreateResponse.DataSource.Responses responses)
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.
-
-
-
-