aboutsummaryrefslogtreecommitdiff
path: root/autogpts/autogpt/autogpt/core/prompting/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'autogpts/autogpt/autogpt/core/prompting/base.py')
-rw-r--r--autogpts/autogpt/autogpt/core/prompting/base.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/autogpts/autogpt/autogpt/core/prompting/base.py b/autogpts/autogpt/autogpt/core/prompting/base.py
new file mode 100644
index 000000000..19e315f69
--- /dev/null
+++ b/autogpts/autogpt/autogpt/core/prompting/base.py
@@ -0,0 +1,23 @@
+import abc
+
+from autogpt.core.configuration import SystemConfiguration
+from autogpt.core.resource.model_providers import AssistantChatMessage
+
+from .schema import ChatPrompt, LanguageModelClassification
+
+
+class PromptStrategy(abc.ABC):
+ default_configuration: SystemConfiguration
+
+ @property
+ @abc.abstractmethod
+ def model_classification(self) -> LanguageModelClassification:
+ ...
+
+ @abc.abstractmethod
+ def build_prompt(self, *_, **kwargs) -> ChatPrompt:
+ ...
+
+ @abc.abstractmethod
+ def parse_response_content(self, response_content: AssistantChatMessage):
+ ...