From 44217b1e5b55858cf792a010e16fe8c8af4d08a1 Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Fri, 25 Oct 2024 17:58:45 -0400 Subject: [PATCH] add back in docstring --- src/crewai/agent.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/crewai/agent.py b/src/crewai/agent.py index 60530ffd8a..937710f592 100644 --- a/src/crewai/agent.py +++ b/src/crewai/agent.py @@ -392,6 +392,16 @@ def _render_text_description(self, tools: List[Any]) -> str: return description def _render_text_description_and_args(self, tools: List[Any]) -> str: + """Render the tool name, description, and args in plain text. + + Output will be in the format of: + + .. code-block:: markdown + + search: This tool is used for search, args: {"query": {"type": "string"}} + calculator: This tool is used for math, \ + args: {"expression": {"type": "string"}} + """ tool_strings = [] for tool in tools: args_schema = {