fix(agent): correct indentation and typo in add_response_filter method

pull/819/head
Pavan Kumar 3 months ago committed by ascender1729
parent effa59014e
commit 0a028ce84d

@ -1861,16 +1861,14 @@ class Agent:
return previous_state, f"Restored to {previous_state}" return previous_state, f"Restored to {previous_state}"
# Response Filtering # Response Filtering
def add_response_filter(self, filter_word: str) -> None:""" def add_response_filter(self, filter_word: str) -> None:
Add a response filter. """
Add a response filter to filter out certain words from the response.
Args:
filter_word (str): The word to filter
""" """
logger.info(f"Adding response filter: {filter_word}") logger.info(f"Adding response filter: {filter_word}")
self.response_filters.append(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. Apply the response filters to the response.

Loading…
Cancel
Save