File size: 306 Bytes
fb8728b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from smolagents import tool


@tool
def reverse_question(question: str) -> str:
    """
    Reverse the given question. Often useful if the question doesn't make sense.

    Args:
        question: The question to be reversed.

    Returns:
        The reversed question.
    """
    return question[::-1]