def tool_maker(task: str) -> str:
    """Creates new tools for agents to use."""
    return graph.invoke(
        {"messages": [SystemMessage(system_prompt), HumanMessage(task)]}
    )
Creates new tools for agents to use.
agents/tool_maker.py