Package com.anthropic.models.messages
Class ServerToolUsage
-
- All Implemented Interfaces:
public final class ServerToolUsage
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classServerToolUsage.BuilderA builder for ServerToolUsage.
-
Method Summary
Modifier and Type Method Description final LongwebFetchRequests()The number of web fetch tool requests. final LongwebSearchRequests()The number of web search tool requests. final JsonField<Long>_webFetchRequests()Returns the raw JSON value of webFetchRequests. final JsonField<Long>_webSearchRequests()Returns the raw JSON value of webSearchRequests. final Map<String, JsonValue>_additionalProperties()final ServerToolUsage.BuildertoBuilder()final ServerToolUsagevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ServerToolUsage.Builderbuilder()Returns a mutable builder for constructing an instance of ServerToolUsage. -
-
Method Detail
-
webFetchRequests
final Long webFetchRequests()
The number of web fetch tool requests.
-
webSearchRequests
final Long webSearchRequests()
The number of web search tool requests.
-
_webFetchRequests
final JsonField<Long> _webFetchRequests()
Returns the raw JSON value of webFetchRequests.
Unlike webFetchRequests, this method doesn't throw if the JSON field has an unexpected type.
-
_webSearchRequests
final JsonField<Long> _webSearchRequests()
Returns the raw JSON value of webSearchRequests.
Unlike webSearchRequests, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ServerToolUsage.Builder toBuilder()
-
validate
final ServerToolUsage 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 ServerToolUsage.Builder builder()
Returns a mutable builder for constructing an instance of ServerToolUsage.
The following fields are required:
.webFetchRequests() .webSearchRequests()
-
-
-
-