Spaces:
Running
on
Zero
Running
on
Zero
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." | |
) | |
] | |