From 0a028ce84d75fdfc444db65e4ee6b4e63c1f8dcd Mon Sep 17 00:00:00 2001 From: Pavan Kumar <66913595+ascender1729@users.noreply.github.com> Date: Sun, 20 Apr 2025 11:21:50 +0000 Subject: [PATCH] fix(agent): correct indentation and typo in add_response_filter method --- swarms/structs/agent.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index 68e505a1..fb729a8f 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -1861,16 +1861,14 @@ class Agent: return previous_state, f"Restored to {previous_state}" # Response Filtering - def add_response_filter(self, filter_word: str) -> None:""" - Add a response filter. - - Args: - filter_word (str): The word to filter + def add_response_filter(self, filter_word: str) -> None: + """ + Add a response filter to filter out certain words from the response. """ logger.info(f"Adding response filter: {filter_word}") self.response_filters.append(filter_word) - def apply_reponse_filters(self, response: str) -> str: + def apply_response_filters(self, response: str) -> str: """ Apply the response filters to the response.