From 44f74fd6f625cadece25b0fba50a03a4d56ea560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 23 Sep 2024 20:56:58 -0300 Subject: [PATCH] removing logs --- src/crewai/tools/tool_usage.py | 3 --- src/crewai/utilities/converter.py | 6 ------ 2 files changed, 9 deletions(-) diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index e0eb0e29c..c618d26d2 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -302,7 +302,6 @@ class ToolUsage: ) -> Union[ToolCalling, InstructorToolCalling]: try: if self.function_calling_llm: - print("self.function_calling_llm") model = ( InstructorToolCalling if self.function_calling_llm.supports_function_calling() @@ -323,9 +322,7 @@ class ToolUsage: ), max_attempts=1, ) - print("converter", converter) tool_object = converter.to_pydantic() - print("tool_object", tool_object) calling = ToolCalling( tool_name=tool_object["tool_name"], arguments=tool_object["arguments"], diff --git a/src/crewai/utilities/converter.py b/src/crewai/utilities/converter.py index dd9955429..9a2cde755 100644 --- a/src/crewai/utilities/converter.py +++ b/src/crewai/utilities/converter.py @@ -132,7 +132,6 @@ def handle_partial_json( converter_cls: Optional[Type[Converter]] = None, ) -> Union[dict, BaseModel, str]: match = re.search(r"({.*})", result, re.DOTALL) - print("handle_partial_json") if match: try: exported_result = model.model_validate_json(match.group(0)) @@ -161,11 +160,8 @@ def convert_with_instructions( agent: Any, converter_cls: Optional[Type[Converter]] = None, ) -> Union[dict, BaseModel, str]: - print("convert_with_instructions") llm = agent.function_calling_llm or agent.llm - print("llm", llm) instructions = get_conversion_instructions(model, llm) - print("instructions", instructions) converter = create_converter( agent=agent, converter_cls=converter_cls, @@ -174,11 +170,9 @@ def convert_with_instructions( model=model, instructions=instructions, ) - print("converter", converter) exported_result = ( converter.to_pydantic() if not is_json_output else converter.to_json() ) - print("exported_result", exported_result) if isinstance(exported_result, ConverterError): Printer().print(