Package dev.langchain4j.model.workersai
Class WorkersAiEmbeddingModel.Builder
java.lang.Object
dev.langchain4j.model.workersai.WorkersAiEmbeddingModel.Builder
- Enclosing class:
WorkersAiEmbeddingModel
Internal Builder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSimple constructor.Sets the apiToken for the Worker AI model builder.build()
Builds a new instance of Worker AI Chat Model.Sets the model name for the Worker AI model builder.
-
Field Details
-
accountId
Account identifier, provided by the WorkerAI platform. -
apiToken
ModelName, preferred as enum for extensibility. -
modelName
ModelName, preferred as enum for extensibility.
-
-
Constructor Details
-
Builder
public Builder()Simple constructor.
-
-
Method Details
-
accountId
Simple constructor.- Parameters:
accountId
- account identifier.- Returns:
- self reference
-
apiToken
Sets the apiToken for the Worker AI model builder.- Parameters:
apiToken
- The apiToken to set.- Returns:
- The current instance of
WorkersAiChatModel.Builder
.
-
modelName
Sets the model name for the Worker AI model builder.- Parameters:
modelName
- The name of the model to set.- Returns:
- The current instance of
WorkersAiChatModel.Builder
.
-
build
Builds a new instance of Worker AI Chat Model.- Returns:
- A new instance of
WorkersAiChatModel
.
-