Skip to content

Commit

Permalink
add back in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
bhancockio committed Oct 25, 2024
1 parent 430a203 commit 44217b1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/crewai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 44217b1

Please sign in to comment.