Class BetaFallbackMessageIterationUsage.Builder
-
- All Implemented Interfaces:
public final class BetaFallbackMessageIterationUsage.BuilderA builder for BetaFallbackMessageIterationUsage.
-
-
Method Summary
-
-
Method Detail
-
cacheCreation
final BetaFallbackMessageIterationUsage.Builder cacheCreation(BetaCacheCreation cacheCreation)
Breakdown of cached tokens by TTL
-
cacheCreation
final BetaFallbackMessageIterationUsage.Builder cacheCreation(Optional<BetaCacheCreation> cacheCreation)
Alias for calling Builder.cacheCreation with
cacheCreation.orElse(null).
-
cacheCreation
final BetaFallbackMessageIterationUsage.Builder cacheCreation(JsonField<BetaCacheCreation> cacheCreation)
Sets Builder.cacheCreation to an arbitrary JSON value.
You should usually call Builder.cacheCreation with a well-typed BetaCacheCreation value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheCreationInputTokens
final BetaFallbackMessageIterationUsage.Builder cacheCreationInputTokens(Long cacheCreationInputTokens)
The number of input tokens used to create the cache entry.
-
cacheCreationInputTokens
final BetaFallbackMessageIterationUsage.Builder cacheCreationInputTokens(JsonField<Long> cacheCreationInputTokens)
Sets Builder.cacheCreationInputTokens to an arbitrary JSON value.
You should usually call Builder.cacheCreationInputTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
cacheReadInputTokens
final BetaFallbackMessageIterationUsage.Builder cacheReadInputTokens(Long cacheReadInputTokens)
The number of input tokens read from the cache.
-
cacheReadInputTokens
final BetaFallbackMessageIterationUsage.Builder cacheReadInputTokens(JsonField<Long> cacheReadInputTokens)
Sets Builder.cacheReadInputTokens to an arbitrary JSON value.
You should usually call Builder.cacheReadInputTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
inputTokens
final BetaFallbackMessageIterationUsage.Builder inputTokens(Long inputTokens)
The number of input tokens which were used.
-
inputTokens
final BetaFallbackMessageIterationUsage.Builder inputTokens(JsonField<Long> inputTokens)
Sets Builder.inputTokens to an arbitrary JSON value.
You should usually call Builder.inputTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final BetaFallbackMessageIterationUsage.Builder model(Model model)
The model that will complete your prompt.
See models for additional details and options.
-
model
final BetaFallbackMessageIterationUsage.Builder model(JsonField<Model> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed Model value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final BetaFallbackMessageIterationUsage.Builder model(String value)
Sets model to an arbitrary String.
You should usually call model with a well-typed Model constant instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
outputTokens
final BetaFallbackMessageIterationUsage.Builder outputTokens(Long outputTokens)
The number of output tokens which were used.
-
outputTokens
final BetaFallbackMessageIterationUsage.Builder outputTokens(JsonField<Long> outputTokens)
Sets Builder.outputTokens to an arbitrary JSON value.
You should usually call Builder.outputTokens with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaFallbackMessageIterationUsage.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("fallback_message")This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaFallbackMessageIterationUsage.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaFallbackMessageIterationUsage.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaFallbackMessageIterationUsage.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaFallbackMessageIterationUsage.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaFallbackMessageIterationUsage.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaFallbackMessageIterationUsage build()
Returns an immutable instance of BetaFallbackMessageIterationUsage.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.cacheCreation() .cacheCreationInputTokens() .cacheReadInputTokens() .inputTokens() .model() .outputTokens()
-
-
-
-