Class BetaRawMessageDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class BetaRawMessageDeltaEvent.BuilderA builder for BetaRawMessageDeltaEvent.
-
-
Method Summary
-
-
Method Detail
-
delta
final BetaRawMessageDeltaEvent.Builder delta(BetaRawMessageDeltaEvent.Delta delta)
-
delta
final BetaRawMessageDeltaEvent.Builder delta(JsonField<BetaRawMessageDeltaEvent.Delta> delta)
-
type
final BetaRawMessageDeltaEvent.Builder type(BetaRawMessageDeltaEvent.Type type)
-
type
final BetaRawMessageDeltaEvent.Builder type(JsonField<BetaRawMessageDeltaEvent.Type> type)
-
usage
final BetaRawMessageDeltaEvent.Builder usage(BetaMessageDeltaUsage usage)
Billing and rate-limit usage.
Anthropic's API bills and rate-limits by token counts, as tokens represent the underlying cost to our systems.
Under the hood, the API transforms requests into a format suitable for the model. The model's output then goes through a parsing stage before becoming an API response. As a result, the token counts in
usagewill not match one-to-one with the exact visible content of an API request or response.For example,
output_tokenswill be non-zero, even for an empty string response from Claude.
-
usage
final BetaRawMessageDeltaEvent.Builder usage(JsonField<BetaMessageDeltaUsage> usage)
Billing and rate-limit usage.
Anthropic's API bills and rate-limits by token counts, as tokens represent the underlying cost to our systems.
Under the hood, the API transforms requests into a format suitable for the model. The model's output then goes through a parsing stage before becoming an API response. As a result, the token counts in
usagewill not match one-to-one with the exact visible content of an API request or response.For example,
output_tokenswill be non-zero, even for an empty string response from Claude.
-
additionalProperties
final BetaRawMessageDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaRawMessageDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaRawMessageDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaRawMessageDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaRawMessageDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaRawMessageDeltaEvent build()
-
-
-
-