Package dev.langchain4j.model.workersai
Class WorkersAiLanguageModel
java.lang.Object
dev.langchain4j.model.workersai.client.AbstractWorkersAIModel
dev.langchain4j.model.workersai.WorkersAiLanguageModel
- All Implemented Interfaces:
LanguageModel
WorkerAI Language model.
...
-
Nested Class Summary
-
Field Summary
Fields inherited from class dev.langchain4j.model.workersai.client.AbstractWorkersAIModel
accountId, modelName, workerAiClient
-
Constructor Summary
ConstructorDescriptionConstructor with Builder.WorkersAiLanguageModel
(String accountId, String modelName, String apiToken) Constructor with Builder. -
Method Summary
Methods inherited from class dev.langchain4j.model.workersai.client.AbstractWorkersAIModel
processErrors
-
Constructor Details
-
WorkersAiLanguageModel
Constructor with Builder.- Parameters:
builder
- builder.
-
WorkersAiLanguageModel
Constructor with Builder.- Parameters:
accountId
- account identifiermodelName
- model nameapiToken
- api token
-
-
Method Details
-
builder
Builder access.- Returns:
- builder instance
-
generate
Generate a response to the given prompt.- Specified by:
generate
in interfaceLanguageModel
- Parameters:
prompt
- the prompt.- Returns:
- the response.
-
generate
Generate a response to the given prompt.- Specified by:
generate
in interfaceLanguageModel
- Parameters:
prompt
- the prompt.- Returns:
- the response.
-