Skip to content

Building AI agents, atomically

chore: Add default output instructions to SystemPromptGenerator

KennyVaneetvelde907aa9292b94
diff --git a/atomic_agents/lib/components/system_prompt_generator.py b/atomic_agents/lib/components/system_prompt_generator.py
index 1a8d5cf..52aeff9 100644
--- a/atomic_agents/lib/components/system_prompt_generator.py
+++ b/atomic_agents/lib/components/system_prompt_generator.py
@@ -26,6 +26,11 @@ class SystemPromptGenerator:
output_instructions=[],
context_providers={}
)
+
+ self.system_prompt_info.output_instructions.extend([
+ 'Always respond using the proper JSON schema.',
+ 'Always use the available additional information and context to enhance the response.'
+ ])
def generate_prompt(self) -> str:
system_prompt = ''