- write a simple prompt that describes what the tool does, and - provide it a python function to execute when the LLM decides that the question it's asked matches the tool description.
That's basically it. https://langchain.readthedocs.io/en/latest/modules/agents/ex...