Class CreateEvalCompletionsRunDataSource.Source.StoredCompletions
-
- All Implemented Interfaces:
public final class CreateEvalCompletionsRunDataSource.Source.StoredCompletions
A StoredCompletionsRunDataSource configuration describing a set of filters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Builder
A builder for StoredCompletions.
public final class
CreateEvalCompletionsRunDataSource.Source.StoredCompletions.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.
-
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.Builder
toBuilder()
final CreateEvalCompletionsRunDataSource.Source.StoredCompletions
validate()
final Boolean
isValid()
Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Builder
builder()
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()
-
builder
final static CreateEvalCompletionsRunDataSource.Source.StoredCompletions.Builder builder()
Returns a mutable builder for constructing an instance of StoredCompletions.
-
-
-
-