Package ai.platon.pulsar.skeleton.ai.tta
Class TextToAction
-
- All Implemented Interfaces:
public final class TextToAction
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTextToAction.Companion
-
Field Summary
Fields Modifier and Type Field Description private final PathbaseDirprivate final PathpulsarSessionFileprivate final StringpulsarSessionSourceCodeprivate final StringpulsarSessionMessageprivate final PathwebDriverFileprivate final StringwebDriverSourceCodeprivate final StringwebDriverMessageprivate final StringactionInstructionMessageprivate final PathactionInterfaceMessageFileprivate final ImmutableConfigconfpublic final static TextToAction.CompanionCompanion
-
Constructor Summary
Constructors Constructor Description TextToAction(ImmutableConfig conf)
-
Method Summary
Modifier and Type Method Description final PathgetBaseDir()final PathgetPulsarSessionFile()final StringgetPulsarSessionSourceCode()final StringgetPulsarSessionMessage()final PathgetWebDriverFile()final StringgetWebDriverSourceCode()final StringgetWebDriverMessage()final StringgetActionInstructionMessage()final PathgetActionInterfaceMessageFile()final ImmutableConfiggetConf()final ModelResponsechatAboutAllInstruction(String prompt)Generate the action code from the prompt. final ModelResponsechatAboutWebDriver(String prompt)Generate the action code from the prompt. final ModelResponsechatAboutPulsarSession(String prompt)Generate the action code from the prompt. final ActionDescriptiongenerateWebDriverActions(String prompt)Generate the action code from the prompt. final ActionDescriptiongeneratePulsarSessionActions(String prompt)Generate the action code from the prompt. -
-
Method Detail
-
getBaseDir
final Path getBaseDir()
-
getPulsarSessionFile
final Path getPulsarSessionFile()
-
getPulsarSessionSourceCode
final String getPulsarSessionSourceCode()
-
getPulsarSessionMessage
final String getPulsarSessionMessage()
-
getWebDriverFile
final Path getWebDriverFile()
-
getWebDriverSourceCode
final String getWebDriverSourceCode()
-
getWebDriverMessage
final String getWebDriverMessage()
-
getActionInstructionMessage
final String getActionInstructionMessage()
-
getActionInterfaceMessageFile
final Path getActionInterfaceMessageFile()
-
getConf
final ImmutableConfig getConf()
-
chatAboutAllInstruction
final ModelResponse chatAboutAllInstruction(String prompt)
Generate the action code from the prompt.
-
chatAboutWebDriver
final ModelResponse chatAboutWebDriver(String prompt)
Generate the action code from the prompt.
-
chatAboutPulsarSession
final ModelResponse chatAboutPulsarSession(String prompt)
Generate the action code from the prompt.
-
generateWebDriverActions
final ActionDescription generateWebDriverActions(String prompt)
Generate the action code from the prompt.
-
generatePulsarSessionActions
final ActionDescription generatePulsarSessionActions(String prompt)
Generate the action code from the prompt.
-
-
-
-