Class AnthropicServiceSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.AnthropicServiceSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class AnthropicServiceSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AnthropicServiceSettings>
Json deserializer forAnthropicServiceSettings
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
apiKey()
Required - A valid API key for the Anthropic API.final String
modelId()
Required - The name of the model to use for the inference task.static AnthropicServiceSettings
final RateLimitSetting
This setting helps to minimize the number of rate limit errors returned from Anthropic.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
Field Details
-
_DESERIALIZER
Json deserializer forAnthropicServiceSettings
-
-
Method Details
-
of
public static AnthropicServiceSettings of(Function<AnthropicServiceSettings.Builder, ObjectBuilder<AnthropicServiceSettings>> fn) -
apiKey
Required - A valid API key for the Anthropic API.API name:
api_key
-
modelId
Required - The name of the model to use for the inference task. Refer to the Anthropic documentation for the list of supported models.API name:
model_id
-
rateLimit
This setting helps to minimize the number of rate limit errors returned from Anthropic. By default, theanthropic
service sets the number of requests allowed per minute to 50.API name:
rate_limit
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAnthropicServiceSettingsDeserializer
protected static void setupAnthropicServiceSettingsDeserializer(ObjectDeserializer<AnthropicServiceSettings.Builder> op)
-