Add multiple tools to a `.ToolManager`. Parameters ---------- toolmanager : `.backend_managers.ToolManager` Manager to which the tools are added. tools : {str: class_like}, optional The tools to add in a {name: tool} dict, see `.backend_managers.ToolMana
(toolmanager, tools=None)
| 961 | |
| 962 | |
| 963 | def add_tools_to_manager(toolmanager, tools=None): |
| 964 | """ |
| 965 | Add multiple tools to a `.ToolManager`. |
| 966 | |
| 967 | Parameters |
| 968 | ---------- |
| 969 | toolmanager : `.backend_managers.ToolManager` |
| 970 | Manager to which the tools are added. |
| 971 | tools : {str: class_like}, optional |
| 972 | The tools to add in a {name: tool} dict, see |
| 973 | `.backend_managers.ToolManager.add_tool` for more info. If not specified, then |
| 974 | defaults to `.default_tools`. |
| 975 | """ |
| 976 | if tools is None: |
| 977 | tools = default_tools |
| 978 | for name, tool in tools.items(): |
| 979 | toolmanager.add_tool(name, tool) |
| 980 | |
| 981 | |
| 982 | def add_tools_to_container(container, tools=None): |
nothing calls this directly
no test coverage detected
searching dependent graphs…