Class TurLLMChatAPI
java.lang.Object
com.viglet.turing.api.llm.chat.TurLLMChatAPI
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionTurLLMChatAPI(TurLLMInstanceRepository turLLMInstanceRepository, TurGenAiLlmProviderFactory llmProviderFactory, TurSecretCryptoService turSecretCryptoService, TurWebCrawlerToolService webCrawlerToolService, TurWeatherToolService weatherToolService, TurFinanceToolService financeToolService, TurCodeInterpreterToolService codeInterpreterToolService, TurImageSearchToolService imageSearchToolService, TurDateTimeToolService dateTimeToolService, TurLLMTokenUsageService tokenUsageService) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<TurLLMChatAPI.ChatResponse> chat(String id, TurLLMChatAPI.ChatRequest request, List<org.springframework.web.multipart.MultipartFile> files) reactor.core.publisher.Flux<TurLLMChatAPI.ChatResponse> chatJson(String id, TurLLMChatAPI.ChatRequest request) contextInfo(String id)
-
Constructor Details
-
TurLLMChatAPI
public TurLLMChatAPI(TurLLMInstanceRepository turLLMInstanceRepository, TurGenAiLlmProviderFactory llmProviderFactory, TurSecretCryptoService turSecretCryptoService, TurWebCrawlerToolService webCrawlerToolService, TurWeatherToolService weatherToolService, TurFinanceToolService financeToolService, TurCodeInterpreterToolService codeInterpreterToolService, TurImageSearchToolService imageSearchToolService, TurDateTimeToolService dateTimeToolService, TurLLMTokenUsageService tokenUsageService)
-
-
Method Details
-
chat
@PostMapping(produces="text/event-stream", consumes="multipart/form-data") public reactor.core.publisher.Flux<TurLLMChatAPI.ChatResponse> chat(@PathVariable String id, @RequestPart("request") TurLLMChatAPI.ChatRequest request, @RequestPart(value="files",required=false) List<org.springframework.web.multipart.MultipartFile> files) -
chatJson
@PostMapping(produces="text/event-stream", consumes="application/json") public reactor.core.publisher.Flux<TurLLMChatAPI.ChatResponse> chatJson(@PathVariable String id, @RequestBody TurLLMChatAPI.ChatRequest request) -
contextInfo
@GetMapping("/context-info") public TurLLMChatAPI.ContextInfoResponse contextInfo(@PathVariable String id)
-