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, modelName, workerAiClient
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor with Builder.WorkersAiChatModel
(String accountId, String modelName, String apiToken) Constructor with Builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkersAiChatModel.Builder
builder()
Builder access.chat
(ChatRequest chatRequest) This is the main API to interact with the chat model.Methods inherited from class AbstractWorkersAIModel
processErrors
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ChatModel
chat, chat, chat, defaultRequestParameters, doChat, listeners, provider, supportedCapabilities
-
Constructor Details
-
WorkersAiChatModel
Constructor with Builder.- Parameters:
builder
- builder.
-
WorkersAiChatModel
-
-
Method Details
-
builder
-
chat
Description copied from interface:ChatModel
This is the main API to interact with the chat model.- Specified by:
chat
in interfaceChatModel
- Parameters:
chatRequest
- aChatRequest
, containing all the inputs to the LLM- Returns:
- a
ChatResponse
, containing all the outputs from the LLM
-