Class RawMessageDeltaEvent.Builder
-
- All Implemented Interfaces:
public final class RawMessageDeltaEvent.BuilderA builder for RawMessageDeltaEvent.
-
-
Method Summary
-
-
Method Detail
-
delta
final RawMessageDeltaEvent.Builder delta(RawMessageDeltaEvent.Delta delta)
-
delta
final RawMessageDeltaEvent.Builder delta(JsonField<RawMessageDeltaEvent.Delta> delta)
-
type
final RawMessageDeltaEvent.Builder type(RawMessageDeltaEvent.Type type)
-
type
final RawMessageDeltaEvent.Builder type(JsonField<RawMessageDeltaEvent.Type> type)
-
usage
final RawMessageDeltaEvent.Builder usage(MessageDeltaUsage 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 RawMessageDeltaEvent.Builder usage(JsonField<MessageDeltaUsage> 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 RawMessageDeltaEvent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final RawMessageDeltaEvent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final RawMessageDeltaEvent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final RawMessageDeltaEvent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final RawMessageDeltaEvent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final RawMessageDeltaEvent build()
-
-
-
-