Package dev.langchain4j.model.workersai.client
package dev.langchain4j.model.workersai.client
-
ClassDescriptionAbstract class for WorkerAI models as they are all initialized the same way.ApiResponse<T>Multiple models leverage the same output format, so we can use this class to parse the response.Error class.Public interface to interact with the WorkerAI API.Represents a request for AI chat completion.Represents a message in the AI chat.Defines the roles a message can have in the chat conversation.Wrapper for the chat completion response.Low level client to interact with the WorkerAI API.An interceptor for HTTP requests to add an authorization token to the header.Request to compute embeddingsResponse to compute embeddingsBeam to hold resultsRequest to generate an image.Response to generate an image.Body of the image generating processRequest to complete a text.Wrapper for the text completion response.Wrapper for the text completion response.