Class RunCreateResponse.DataSource
-
- All Implemented Interfaces:
public final class RunCreateResponse.DataSourceInformation about the run's data source.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceRunCreateResponse.DataSource.VisitorAn interface that defines how to map each variant of DataSource to a value of type T.
public final classRunCreateResponse.DataSource.ResponsesA ResponsesRunDataSource object describing a model sampling configuration.
-
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 Optional<RunCreateResponse.DataSource.Responses>responses()A ResponsesRunDataSource object describing a model sampling configuration. final BooleanisJsonl()final BooleanisCompletions()final BooleanisResponses()final CreateEvalJsonlRunDataSourceasJsonl()A JsonlRunDataSource object with that specifies a JSONL file that matches the eval final CreateEvalCompletionsRunDataSourceasCompletions()A CompletionsRunDataSource object describing a model sampling configuration. final RunCreateResponse.DataSource.ResponsesasResponses()A ResponsesRunDataSource object describing a model sampling configuration. final Optional<JsonValue>_json()final <T extends Any> Taccept(RunCreateResponse.DataSource.Visitor<T> visitor)final RunCreateResponse.DataSourcevalidate()final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static RunCreateResponse.DataSourceofJsonl(CreateEvalJsonlRunDataSource jsonl)A JsonlRunDataSource object with that specifies a JSONL file that matches the eval final static RunCreateResponse.DataSourceofCompletions(CreateEvalCompletionsRunDataSource completions)A CompletionsRunDataSource object describing a model sampling configuration. final static RunCreateResponse.DataSourceofResponses(RunCreateResponse.DataSource.Responses responses)A ResponsesRunDataSource 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.
-
responses
final Optional<RunCreateResponse.DataSource.Responses> responses()
A ResponsesRunDataSource object describing a model sampling configuration.
-
isCompletions
final Boolean isCompletions()
-
isResponses
final Boolean isResponses()
-
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.
-
asResponses
final RunCreateResponse.DataSource.Responses asResponses()
A ResponsesRunDataSource 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.
-
ofResponses
final static RunCreateResponse.DataSource ofResponses(RunCreateResponse.DataSource.Responses responses)
A ResponsesRunDataSource object describing a model sampling configuration.
-
-
-
-