Building AI agents, atomically
Black formatting
KennyVaneetveldedc6f2965d52e
diff --git a/atomic_agents/agents/tool_interface_agent.py b/atomic_agents/agents/tool_interface_agent.pyindex 4af7683..d9e9265 100644--- a/atomic_agents/agents/tool_interface_agent.py+++ b/atomic_agents/agents/tool_interface_agent.py@@ -84,7 +84,7 @@ class ToolInterfaceAgent(BaseAgent):"Call the tool with the parameters.","Respond to the user",],- output_instructions=output_instructions+ output_instructions=output_instructions,)def get_response(self, response_model=None):diff --git a/atomic_agents/lib/components/system_prompt_generator.py b/atomic_agents/lib/components/system_prompt_generator.pyindex 0a86328..2f0f6c4 100644--- a/atomic_agents/lib/components/system_prompt_generator.py+++ b/atomic_agents/lib/components/system_prompt_generator.py@@ -20,17 +20,19 @@ class SystemPromptGenerator:background: Optional[List[str]] = None,steps: Optional[List[str]] = None,output_instructions: Optional[List[str]] = None,- context_providers: Optional[Dict[str, SystemPromptContextProviderBase]] = None+ context_providers: Optional[Dict[str, SystemPromptContextProviderBase]] = None,):self.background = background or ["This is a conversation with a helpful and friendly AI assistant."]self.steps = steps or []self.output_instructions = output_instructions or []self.context_providers = context_providers or {}- self.output_instructions.extend([- "Always respond using the proper JSON schema.",- "Always use the available additional information and context to enhance the response.",- ])+ self.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:sections = [diff --git a/atomic_agents/lib/tools/search/searx_tool.py b/atomic_agents/lib/tools/search/searx_tool.pyindex 3739b3b..e63422c 100644--- a/atomic_agents/lib/tools/search/searx_tool.py+++ b/atomic_agents/lib/tools/search/searx_tool.py@@ -154,9 +154,7 @@ class SearxNGTool(BaseTool):#################if __name__ == "__main__":rich_console = Console()- search_tool_instance = SearxNGTool(- config=SearxNGToolConfig(base_url=os.getenv("SEARXNG_BASE_URL"), max_results=5)- )+ search_tool_instance = SearxNGTool(config=SearxNGToolConfig(base_url=os.getenv("SEARXNG_BASE_URL"), max_results=5))search_input = SearxNGTool.input_schema(queries=["Python programming", "Machine learning", "Artificial intelligence"],