Interface CodingPrompter
- All Superinterfaces:
Manager
- All Known Implementing Classes:
DisabledCodingPrompter, GeminiPrompter, OpenAIPrompter, OpenRouterPrompter
CodingPrompter
This interface represents a coding prompter, that will generate a code by players prompts.-
Method Summary
Modifier and TypeMethodDescription@NotNull CompletableFuture<String> generateCode(@NotNull String nickname, @NotNull UUID uuid, @NotNull String prompt, int actionsLimit) Generates a code by player's prompt.voidSets the token for coding prompter.
-
Method Details
-
generateCode
@NotNull @NotNull CompletableFuture<String> generateCode(@NotNull @NotNull String nickname, @NotNull @NotNull UUID uuid, @NotNull @NotNull String prompt, int actionsLimit) Generates a code by player's prompt. Returns- Parameters:
nickname- name of player.uuid- uuid of player.prompt- prompt to generate code.actionsLimit- limit of actions per executor.- Returns:
- code script YAML, or reason why code refused to generate.
-
setToken
Sets the token for coding prompter.- Parameters:
token- new token.
-