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 ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescription<T> CompletionStage<T> assist(Optional<String> systemMessageTemplate, String userMessageTemplate, Map<String, String> variables, List<Path> paths) Assist the developer with somethingdefault Assistant.AssistBuilder<T> CompletionStage<T> Explain and suggest a fix for an exception in the user codedefault Assistant.ExceptionBuilderbooleanCheck if the assistant is available
-
Method Details
-
isAvailable
boolean isAvailable()Check if the assistant is available- Returns:
- true id there is an implementation that is configured and connected
-
exception
<T> CompletionStage<T> exception(Optional<String> systemMessage, String userMessage, String stacktrace, Path path) Explain and suggest a fix for an exception in the user code- Type Parameters:
T-- Parameters:
systemMessage- System wide contextuserMessage- User specific contextstacktrace- The exception stacktracepath- The path to the effective class causing this exception- Returns:
-
assist
<T> CompletionStage<T> assist(Optional<String> systemMessageTemplate, String userMessageTemplate, Map<String, String> variables, List<Path> paths) 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:
-
exceptionBuilder
-
assistBuilder
-