Class BetaRawMessageDeltaEvent
-
- All Implemented Interfaces:
public final class BetaRawMessageDeltaEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaRawMessageDeltaEvent.BuilderA builder for BetaRawMessageDeltaEvent.
public final classBetaRawMessageDeltaEvent.Deltapublic final classBetaRawMessageDeltaEvent.Type
-
Method Summary
Modifier and Type Method Description final BetaRawMessageDeltaEvent.Deltadelta()final BetaRawMessageDeltaEvent.Typetype()final BetaMessageDeltaUsageusage()Billing and rate-limit usage. final JsonField<BetaRawMessageDeltaEvent.Delta>_delta()final JsonField<BetaRawMessageDeltaEvent.Type>_type()final JsonField<BetaMessageDeltaUsage>_usage()Billing and rate-limit usage. final Map<String, JsonValue>_additionalProperties()final BetaRawMessageDeltaEventvalidate()final BetaRawMessageDeltaEvent.BuildertoBuilder()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaRawMessageDeltaEvent.Builderbuilder()-
-
Method Detail
-
delta
final BetaRawMessageDeltaEvent.Delta delta()
-
type
final BetaRawMessageDeltaEvent.Type type()
-
usage
final 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.
-
_delta
final JsonField<BetaRawMessageDeltaEvent.Delta> _delta()
-
_type
final JsonField<BetaRawMessageDeltaEvent.Type> _type()
-
_usage
final 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 Map<String, JsonValue> _additionalProperties()
-
validate
final BetaRawMessageDeltaEvent validate()
-
toBuilder
final BetaRawMessageDeltaEvent.Builder toBuilder()
-
builder
final static BetaRawMessageDeltaEvent.Builder builder()
-
-
-
-