Update aeo_ex_generator/aeo_example_generator.py
Browse files
aeo_ex_generator/aeo_example_generator.py
CHANGED
@@ -342,10 +342,15 @@ If namespace "uco-role" prefix is used then https://ontology.unifiedcyberontolog
|
|
342 |
return string.split(":")[0]
|
343 |
|
344 |
|
345 |
-
def auto_generate(self,planSize:int=3,keywords:str="",nkeywords:str=""):
|
346 |
-
p =
|
|
|
|
|
|
|
347 |
if keywords:
|
348 |
p+= f"The plan must include specifically {keywords}."
|
|
|
|
|
349 |
if nkeywords:
|
350 |
p+= f"Do not include {nkeywords}."
|
351 |
#deception plan description
|
|
|
342 |
return string.split(":")[0]
|
343 |
|
344 |
|
345 |
+
def auto_generate(self,planSize:int=3,keywords:str="",nkeywords:str="",contextPrompt:str=""):
|
346 |
+
p = ""
|
347 |
+
if contextPrompt:
|
348 |
+
p += f"Given the following context: {contextPrompt}."
|
349 |
+
p += f"Generate a deception plan with {planSize} PlannedEvents."
|
350 |
if keywords:
|
351 |
p+= f"The plan must include specifically {keywords}."
|
352 |
+
else:
|
353 |
+
p+=f"Make sure to include all deception objects in the context."
|
354 |
if nkeywords:
|
355 |
p+= f"Do not include {nkeywords}."
|
356 |
#deception plan description
|