Class RunCreateResponse.DataSource.Responses
-
- All Implemented Interfaces:
public final class RunCreateResponse.DataSource.Responses
A ResponsesRunDataSource object describing a model sampling configuration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
RunCreateResponse.DataSource.Responses.Builder
A builder for Responses.
public final class
RunCreateResponse.DataSource.Responses.Source
Determines what populates the
item
namespace in this run's data source.public final class
RunCreateResponse.DataSource.Responses.InputMessages
Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie,
item.input_trajectory
), or a template with variable references to theitem
namespace.public final class
RunCreateResponse.DataSource.Responses.SamplingParams
-
Method Summary
-
-
Method Detail
-
source
final RunCreateResponse.DataSource.Responses.Source source()
Determines what populates the
item
namespace in this run's data source.
-
_type
final JsonValue _type()
The type of run data source. Always
responses
.Expected to always return the following:
JsonValue.from("responses")
However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
inputMessages
final Optional<RunCreateResponse.DataSource.Responses.InputMessages> inputMessages()
Used when sampling from a model. Dictates the structure of the messages passed into the model. Can either be a reference to a prebuilt trajectory (ie,
item.input_trajectory
), or a template with variable references to theitem
namespace.
-
model
final Optional<String> model()
The name of the model to use for generating completions (e.g. "o3-mini").
-
samplingParams
final Optional<RunCreateResponse.DataSource.Responses.SamplingParams> samplingParams()
-
_source
final JsonField<RunCreateResponse.DataSource.Responses.Source> _source()
Returns the raw JSON value of source.
Unlike source, this method doesn't throw if the JSON field has an unexpected type.
-
_inputMessages
final JsonField<RunCreateResponse.DataSource.Responses.InputMessages> _inputMessages()
Returns the raw JSON value of inputMessages.
Unlike inputMessages, this method doesn't throw if the JSON field has an unexpected type.
-
_model
final JsonField<String> _model()
Returns the raw JSON value of model.
Unlike model, this method doesn't throw if the JSON field has an unexpected type.
-
_samplingParams
final JsonField<RunCreateResponse.DataSource.Responses.SamplingParams> _samplingParams()
Returns the raw JSON value of samplingParams.
Unlike samplingParams, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final RunCreateResponse.DataSource.Responses.Builder toBuilder()
-
validate
final RunCreateResponse.DataSource.Responses validate()
-
builder
final static RunCreateResponse.DataSource.Responses.Builder builder()
Returns a mutable builder for constructing an instance of Responses.
The following fields are required:
.source()
-
-
-
-