FunctionTool
from llama_index.tools import FunctionTool def add(a: int, b: int) -> int: """Add two numbers.""" return a + b tool = FunctionTool.from_defaults(fn=add) agent = OpenAIAgent.from_tools([tool])