Class CreateEvalCompletionsRunDataSource.Source.StoredCompletions
-
- All Implemented Interfaces:
public final class CreateEvalCompletionsRunDataSource.Source.StoredCompletionsA StoredCompletionsRunDataSource configuration describing a set of filters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCreateEvalCompletionsRunDataSource.Source.StoredCompletions.BuilderA builder for StoredCompletions.
public final classCreateEvalCompletionsRunDataSource.Source.StoredCompletions.MetadataSet of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()The type of source. final Optional<Long>createdAfter()An optional Unix timestamp to filter items created after this time. final Optional<Long>createdBefore()An optional Unix timestamp to filter items created before this time. final Optional<Long>limit()An optional maximum number of items to return. final Optional<CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Metadata>metadata()Set of 16 key-value pairs that can be attached to an object. final Optional<String>model()An optional model to filter by (e.g., 'gpt-4o'). final JsonField<Long>_createdAfter()Returns the raw JSON value of createdAfter. final JsonField<Long>_createdBefore()Returns the raw JSON value of createdBefore. final JsonField<Long>_limit()Returns the raw JSON value of limit. final JsonField<CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Metadata>_metadata()Returns the raw JSON value of metadata. final JsonField<String>_model()Returns the raw JSON value of model. final Map<String, JsonValue>_additionalProperties()final CreateEvalCompletionsRunDataSource.Source.StoredCompletions.BuildertoBuilder()final CreateEvalCompletionsRunDataSource.Source.StoredCompletionsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Builderbuilder()Returns a mutable builder for constructing an instance of StoredCompletions. -
-
Method Detail
-
_type
final JsonValue _type()
The type of source. Always
stored_completions.Expected to always return the following:
JsonValue.from("stored_completions")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
createdAfter
final Optional<Long> createdAfter()
An optional Unix timestamp to filter items created after this time.
-
createdBefore
final Optional<Long> createdBefore()
An optional Unix timestamp to filter items created before this time.
-
metadata
final Optional<CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Metadata> metadata()
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
_createdAfter
final JsonField<Long> _createdAfter()
Returns the raw JSON value of createdAfter.
Unlike createdAfter, this method doesn't throw if the JSON field has an unexpected type.
-
_createdBefore
final JsonField<Long> _createdBefore()
Returns the raw JSON value of createdBefore.
Unlike createdBefore, this method doesn't throw if the JSON field has an unexpected type.
-
_limit
final JsonField<Long> _limit()
Returns the raw JSON value of limit.
Unlike limit, this method doesn't throw if the JSON field has an unexpected type.
-
_metadata
final JsonField<CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Metadata> _metadata()
Returns the raw JSON value of metadata.
Unlike metadata, 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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Builder toBuilder()
-
validate
final CreateEvalCompletionsRunDataSource.Source.StoredCompletions validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Builder builder()
Returns a mutable builder for constructing an instance of StoredCompletions.
-
-
-
-