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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AnthropicServiceSettings>Json deserializer forAnthropicServiceSettings
- 
Method SummaryModifier 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- 
_DESERIALIZERJson deserializer forAnthropicServiceSettings
 
- 
- 
Method Details- 
ofpublic static AnthropicServiceSettings of(Function<AnthropicServiceSettings.Builder, ObjectBuilder<AnthropicServiceSettings>> fn) 
- 
apiKeyRequired - A valid API key for the Anthropic API.API name: api_key
- 
modelIdRequired - 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
- 
rateLimitThis 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
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupAnthropicServiceSettingsDeserializerprotected static void setupAnthropicServiceSettingsDeserializer(ObjectDeserializer<AnthropicServiceSettings.Builder> op) 
 
-