Class ApiResponse<T>

java.lang.Object
dev.langchain4j.model.workersai.client.ApiResponse<T>
Type Parameters:
T - Type of the result.
Direct Known Subclasses:
WorkersAiEmbeddingResponse, WorkersAiImageGenerationResponse, WorkersAiTextCompletionResponse

public class ApiResponse<T> extends Object
Multiple models leverage the same output format, so we can use this class to parse the response.
  • Constructor Details

    • ApiResponse

      public ApiResponse()
      Default constructor.