File size: 376 Bytes
76df764
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from langchain.tools import Tool

def search_tool(query: str) -> str:
    """A simple search function (can be connected to real APIs)."""
    return f"Searching for: {query}... [Sample Response]"

# Define the list of tools
tools = [
    Tool(
        name="Search Tool",
        func=search_tool,
        description="Searches for information based on user queries."
    )
]