Class WorkersAiChatModel
java.lang.Object
dev.langchain4j.model.workersai.client.AbstractWorkersAIModel
dev.langchain4j.model.workersai.WorkersAiChatModel
- All Implemented Interfaces:
ChatModel
WorkerAI Chat model.
...
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class AbstractWorkersAIModel
accountId, client, modelName -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with Builder.WorkersAiChatModel(String accountId, String modelName, String apiToken) Constructor with Builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkersAiChatModel.Builderbuilder()Builder access.chat(ChatRequest chatRequest) This is the main API to interact with the chat model.
-
Constructor Details
-
WorkersAiChatModel
Constructor with Builder.- Parameters:
builder- builder.
-
WorkersAiChatModel
-
-
Method Details
-
builder
-
chat
Description copied from interface:ChatModelThis is the main API to interact with the chat model.- Specified by:
chatin interfaceChatModel- Parameters:
chatRequest- aChatRequest, containing all the inputs to the LLM- Returns:
- a
ChatResponse, containing all the outputs from the LLM
-