add back in docstring

This commit is contained in:
Brandon Hancock
2024-10-25 17:58:45 -04:00
parent 430a2038a3
commit 44217b1e5b

View File

@@ -392,6 +392,16 @@ class Agent(BaseAgent):
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 = {