Final_Assignment_Submission / src /tools /reverse_question.py
mhattingpete's picture
updated agent with more tools and added a new tool
fb8728b
raw
history blame
306 Bytes
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]