Class TurLLMSemanticChatAPI
java.lang.Object
com.viglet.turing.api.llm.chat.TurLLMSemanticChatAPI
@RestController
@RequestMapping("/api/v2/llm/{id}/semantic-chat")
public class TurLLMSemanticChatAPI
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionTurLLMSemanticChatAPI(TurLLMInstanceRepository turLLMInstanceRepository, TurGenAiLlmProviderFactory llmProviderFactory, TurSecretCryptoService turSecretCryptoService, TurSemanticNavToolService semanticNavToolService, TurLLMTokenUsageService tokenUsageService) -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Flux<TurLLMSemanticChatAPI.ChatResponse> chat(String id, TurLLMSemanticChatAPI.ChatRequest request) contextInfo(String id)
-
Constructor Details
-
Method Details
-
chat
@PostMapping(produces="text/event-stream", consumes="application/json") public reactor.core.publisher.Flux<TurLLMSemanticChatAPI.ChatResponse> chat(@PathVariable String id, @RequestBody TurLLMSemanticChatAPI.ChatRequest request) -
contextInfo
@GetMapping("/context-info") public TurLLMChatAPI.ContextInfoResponse contextInfo(@PathVariable String id)
-