Uses of Class
dev.langchain4j.model.anthropic.AnthropicBatchChatModel.Builder
Packages that use AnthropicBatchChatModel.Builder
-
Uses of AnthropicBatchChatModel.Builder in dev.langchain4j.model.anthropic
Methods in dev.langchain4j.model.anthropic that return AnthropicBatchChatModel.BuilderModifier and TypeMethodDescriptionSets the Anthropic API key used to authenticate requests.Sets the base URL of the Anthropic API.Sets the value of theanthropic-betarequest header to opt into beta features.AnthropicBatchChatModel.builder()AnthropicBatchChatModel.Builder.customHeaders(Supplier<Map<String, String>> customHeadersSupplier) Sets a supplier of custom HTTP headers, invoked for every request to the Anthropic API.AnthropicBatchChatModel.Builder.customHeaders(Map<String, String> customHeaders) Sets custom HTTP headers sent with every request to the Anthropic API.AnthropicBatchChatModel.Builder.customParameters(Map<String, Object> customParameters) Sets additional top-level parameters added verbatim to every batched request body.AnthropicBatchChatModel.Builder.defaultRequestParameters(ChatRequestParameters parameters) Sets the defaultChatRequestParametersapplied to every batched request.AnthropicBatchChatModel.Builder.httpClientBuilder(HttpClientBuilder httpClientBuilder) Sets a customHttpClientBuilderfor the underlying HTTP client.AnthropicBatchChatModel.Builder.logRequests(Boolean logRequests) Enables debug logging of HTTP request bodies sent to the Anthropic API.AnthropicBatchChatModel.Builder.logResponses(Boolean logResponses) Enables debug logging of HTTP response bodies received from the Anthropic API.AnthropicBatchChatModel.Builder.maxRetries(Integer maxRetries) Sets the number of times to retry a request on transient errors (e.g. rate limits, server errors).Sets the maximum number of tokens to generate per batched request.AnthropicBatchChatModel.Builder.modelName(AnthropicChatModelName modelName) Sets the model applied to every batched request.Sets the model applied to every batched request, specified as a string model ID.AnthropicBatchChatModel.Builder.returnServerToolResults(Boolean returnServerToolResults) Controls whether to return server tool results (e.g. web_search, code_execution) insideAiMessage.attributes()under the key "server_tool_results".AnthropicBatchChatModel.Builder.returnThinking(Boolean returnThinking) Controls whether thinking returned by the API is stored inAiMessage.thinking().AnthropicBatchChatModel.Builder.serverTools(AnthropicServerTool... serverTools) AnthropicBatchChatModel.Builder.serverTools(List<AnthropicServerTool> serverTools) Specifies server tools (e.g. web search, code execution) to be included in every batched request.AnthropicBatchChatModel.Builder.skills(AnthropicSkill... skills) AnthropicBatchChatModel.Builder.skills(List<AnthropicSkill> skills) Enables Anthropic Agent Skills for every batched request.AnthropicBatchChatModel.Builder.stopSequences(List<String> stopSequences) Sets sequences that, when generated, will cause the model to stop generating further tokens.AnthropicBatchChatModel.Builder.strictTools(Boolean strictTools) Enables strict mode for tools, guaranteeing that generated tool arguments match the tool's schema.AnthropicBatchChatModel.Builder.temperature(Double temperature) Sets the sampling temperature in the range[0.0, 1.0].AnthropicBatchChatModel.Builder.thinkingDisplay(String thinkingDisplay) Controls how thinking is returned by the API, e.g.Sets the HTTP request timeout for calls to the Anthropic API.AnthropicBatchChatModel.Builder.toolMetadataKeysToSend(String... toolMetadataKeysToSend) AnthropicBatchChatModel.Builder.toolMetadataKeysToSend(Set<String> toolMetadataKeysToSend) Specifies metadata keys from theToolSpecification.metadata()to be included in the request.Sets the top-K sampling value.Sets the nucleus sampling probability (top-p) in the range(0.0, 1.0].Sets the value of theanthropic-versionrequest header.Constructors in dev.langchain4j.model.anthropic with parameters of type AnthropicBatchChatModel.Builder