Package com.openai.models.evals.runs
Class RunCreateResponse.DataSource
-
- All Implemented Interfaces:
public final class RunCreateResponse.DataSource
Information about the run's data source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
RunCreateResponse.DataSource.Visitor
An interface that defines how to map each variant of DataSource to a value of type T.
-
Method Summary
Modifier and Type Method Description final Optional<CreateEvalJsonlRunDataSource>
jsonl()
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval final Optional<CreateEvalCompletionsRunDataSource>
completions()
A CompletionsRunDataSource object describing a model sampling configuration. final Boolean
isJsonl()
final Boolean
isCompletions()
final CreateEvalJsonlRunDataSource
asJsonl()
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval final CreateEvalCompletionsRunDataSource
asCompletions()
A CompletionsRunDataSource object describing a model sampling configuration. final Optional<JsonValue>
_json()
final <T extends Any> T
accept(RunCreateResponse.DataSource.Visitor<T> visitor)
final RunCreateResponse.DataSource
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static RunCreateResponse.DataSource
ofJsonl(CreateEvalJsonlRunDataSource jsonl)
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval final static RunCreateResponse.DataSource
ofCompletions(CreateEvalCompletionsRunDataSource completions)
A CompletionsRunDataSource object describing a model sampling configuration. -
-
Method Detail
-
jsonl
final Optional<CreateEvalJsonlRunDataSource> jsonl()
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval
-
completions
final Optional<CreateEvalCompletionsRunDataSource> completions()
A CompletionsRunDataSource object describing a model sampling configuration.
-
isCompletions
final Boolean isCompletions()
-
asJsonl
final CreateEvalJsonlRunDataSource asJsonl()
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval
-
asCompletions
final CreateEvalCompletionsRunDataSource asCompletions()
A CompletionsRunDataSource object describing a model sampling configuration.
-
accept
final <T extends Any> T accept(RunCreateResponse.DataSource.Visitor<T> visitor)
-
validate
final RunCreateResponse.DataSource validate()
-
ofJsonl
final static RunCreateResponse.DataSource ofJsonl(CreateEvalJsonlRunDataSource jsonl)
A JsonlRunDataSource object with that specifies a JSONL file that matches the eval
-
ofCompletions
final static RunCreateResponse.DataSource ofCompletions(CreateEvalCompletionsRunDataSource completions)
A CompletionsRunDataSource object describing a model sampling configuration.
-
-
-
-