render_text_description_and_args#

langchain_core.tools.render.render_text_description_and_args(tools: list[BaseTool]) str[source]#

Render the tool name, description, and args in plain text.

Parameters:

tools (list[BaseTool]) – The tools to render.

Returns:

The rendered text.

Return type:

str

Output will be in the format of:

search: This tool is used for search, args: {"query": {"type": "string"}}
calculator: This tool is used for math, args: {"expression": {"type": "string"}}

Examples using render_text_description_and_args