Package io.quarkus.assistant.runtime.dev
Interface Assistant
public interface Assistant
This is the Assistant for Quarkus Dev Mode. The actual implementation will be provided by another extension (eg. Chappie)
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription<T> CompletionStage<T> assist(Optional<String> systemMessageTemplate, String userMessageTemplate, Map<String, String> variables, List<Path> paths, Class<?> responseType) Assist the developer with somethingdefault Assistant.AssistBuilderReturn the path to the assistant implementation chat screendefault StringGet the link to the chat screen given the current active chatReturn the memory Id from the last assistance.booleanCheck if the assistant is available
-
Method Details
-
isAvailable
boolean isAvailable()Check if the assistant is available- Returns:
- true if there is an implementation that is configured and connected
-
assist
<T> CompletionStage<T> assist(Optional<String> systemMessageTemplate, String userMessageTemplate, Map<String, String> variables, List<Path> paths, Class<?> responseType) Assist the developer with something- Type Parameters:
T- The response- Parameters:
systemMessageTemplate- System wide contextuserMessageTemplate- User specific contextvariables- variables that can be used in the templatespaths- Paths to workspace files (optional)- Returns:
-
assistBuilder
-
getMemoryId
String getMemoryId()Return the memory Id from the last assistance. Could be null- Returns:
-
getChatPath
String getChatPath()Return the path to the assistant implementation chat screen- Returns:
-
getLinkToChatScreen
Get the link to the chat screen given the current active chat- Returns:
-