Class CacheMissToolsChanged
-
- All Implemented Interfaces:
public final class CacheMissToolsChangedA
cache_miss_reasonfor a request whosetoolsdiffer from the previous request's, for example because tools were added, removed, or reordered.See the cache diagnostics guide to learn what to change for each reason.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classCacheMissToolsChanged.BuilderA builder for CacheMissToolsChanged.
-
Method Summary
Modifier and Type Method Description final LongcacheMissedInputTokens()Approximate number of input tokens that would have been read from cache had the prefix matched the previous request. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tools_changed")final JsonField<Long>_cacheMissedInputTokens()Returns the raw JSON value of cacheMissedInputTokens. final Map<String, JsonValue>_additionalProperties()final CacheMissToolsChanged.BuildertoBuilder()final CacheMissToolsChangedvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static CacheMissToolsChanged.Builderbuilder()Returns a mutable builder for constructing an instance of CacheMissToolsChanged. final static CacheMissToolsChangedof(Long cacheMissedInputTokens)Returns an immutable instance of CacheMissToolsChanged with the required cacheMissedInputTokens set to the given value. -
-
Method Detail
-
cacheMissedInputTokens
final Long cacheMissedInputTokens()
Approximate number of input tokens that would have been read from cache had the prefix matched the previous request.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("tools_changed")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_cacheMissedInputTokens
final JsonField<Long> _cacheMissedInputTokens()
Returns the raw JSON value of cacheMissedInputTokens.
Unlike cacheMissedInputTokens, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final CacheMissToolsChanged.Builder toBuilder()
-
validate
final CacheMissToolsChanged validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static CacheMissToolsChanged.Builder builder()
Returns a mutable builder for constructing an instance of CacheMissToolsChanged.
The following fields are required:
.cacheMissedInputTokens()
-
of
final static CacheMissToolsChanged of(Long cacheMissedInputTokens)
Returns an immutable instance of CacheMissToolsChanged with the required cacheMissedInputTokens set to the given value.
-
-
-
-