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 StringapiKey()Required - A valid API key for the Anthropic API.final StringmodelId()Required - The name of the model to use for the inference task.static AnthropicServiceSettingsfinal RateLimitSettingThis setting helps to minimize the number of rate limit errors returned from Anthropic.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
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, theanthropicservice sets the number of requests allowed per minute to 50.API name:
rate_limit -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupAnthropicServiceSettingsDeserializer
protected static void setupAnthropicServiceSettingsDeserializer(ObjectDeserializer<AnthropicServiceSettings.Builder> op)
-