Class WorkersAiClient.Builder
java.lang.Object
dev.langchain4j.model.workersai.client.WorkersAiClient.Builder
- Enclosing class:
WorkersAiClient
Builder for
WorkersAiClient.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the API token used for authorization.build()Builds a newWorkersAiClient.httpClientBuilder(HttpClientBuilder httpClientBuilder) Sets theHttpClientBuilderused to create the underlying HTTP client.Sets the timeout used for both connecting and reading.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpClientBuilder
Sets theHttpClientBuilderused to create the underlying HTTP client.- Parameters:
httpClientBuilder- the HTTP client builder.- Returns:
this.
-
timeout
Sets the timeout used for both connecting and reading.- Parameters:
timeout- the timeout.- Returns:
this.
-
apiToken
Sets the API token used for authorization.- Parameters:
apiToken- the API token.- Returns:
this.
-
build
-