mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-08-05 19:08:42 +02:00
pseudo-code for fluent text generation service call
This commit is contained in:
+4
-4
@@ -6,19 +6,19 @@ from src.text_generation.domain.abstract_guidelines_processed_completion import
|
||||
class AbstractGenerativeAiSecurityGuidelinesService(abc.ABC):
|
||||
@abc.abstractmethod
|
||||
def for_prompt(self, prompt: str):
|
||||
raise NotImplementedError
|
||||
return self
|
||||
|
||||
@abc.abstractmethod
|
||||
def skip_guidelines(self):
|
||||
raise NotImplementedError
|
||||
return self
|
||||
|
||||
@abc.abstractmethod
|
||||
def use_chain_of_thought(self):
|
||||
raise NotImplementedError
|
||||
return self
|
||||
|
||||
@abc.abstractmethod
|
||||
def use_examples_from_rag(self):
|
||||
raise NotImplementedError
|
||||
return self
|
||||
|
||||
@abc.abstractmethod
|
||||
def apply(self) -> AbstractGuidelinesProcessedCompletion:
|
||||
|
||||
Reference in New Issue
Block a user