@@ -290,7 +290,6 @@ def get_response(
290290 agent_role : Optional [str ] = None ,
291291 agent_tools : Optional [List [str ]] = None ,
292292 execute_tool_fn : Optional [Callable ] = None ,
293- suppress_display : bool = False ,
294293 ** kwargs
295294 ) -> str :
296295 """Enhanced get_response with all OpenAI-like features"""
@@ -455,15 +454,15 @@ def get_response(
455454 final_response = resp
456455
457456 # Optionally display reasoning if present
458- if verbose and not suppress_display and reasoning_content :
457+ if verbose and reasoning_content :
459458 display_interaction (
460459 original_prompt ,
461460 f"Reasoning:\n { reasoning_content } \n \n Answer:\n { response_text } " ,
462461 markdown = markdown ,
463462 generation_time = time .time () - current_time ,
464463 console = console
465464 )
466- elif verbose and not suppress_display :
465+ else :
467466 display_interaction (
468467 original_prompt ,
469468 response_text ,
@@ -666,15 +665,15 @@ def get_response(
666665 response_text = resp ["choices" ][0 ]["message" ]["content" ]
667666
668667 # Optionally display reasoning if present
669- if verbose and not suppress_display and reasoning_content :
668+ if verbose and reasoning_content :
670669 display_interaction (
671670 original_prompt ,
672671 f"Reasoning:\n { reasoning_content } \n \n Answer:\n { response_text } " ,
673672 markdown = markdown ,
674673 generation_time = time .time () - start_time ,
675674 console = console
676675 )
677- elif verbose and not suppress_display :
676+ else :
678677 display_interaction (
679678 original_prompt ,
680679 response_text ,
@@ -719,7 +718,7 @@ def get_response(
719718 final_response_text = final_response_text .strip ()
720719
721720 # Display final response
722- if verbose and not suppress_display :
721+ if verbose :
723722 display_interaction (
724723 original_prompt ,
725724 final_response_text ,
@@ -742,7 +741,7 @@ def get_response(
742741 return final_response_text
743742
744743 # No tool calls were made in this iteration, return the response
745- if verbose and not suppress_display :
744+ if verbose :
746745 display_interaction (
747746 original_prompt ,
748747 response_text ,
0 commit comments