File size: 363 Bytes
6230b38
 
 
538b711
b2746c2
 
 
 
 
 
 
 
 
538b711
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from smolagents import tool

@tool
def fallback(_: str) -> str:
    """
    Returns a polite fallback message when no specific tool applies.

    Args:
        _ (str): Unused input string.

    Returns:
        str: Default fallback response.
    """
    return "I'm sorry, I couldn't find the answer to your question. Could you rephrase or try something else?"