File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/crewai/src/crewai/tools Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11import uuid
22from datetime import datetime
3- from langchain .tools import tool
3+ from crewai .tools import tool
44
55class AgentUtilityTools :
66 """
@@ -9,7 +9,7 @@ class AgentUtilityTools:
99 """
1010
1111 @tool ("Generate Unique ID" )
12- def generate_id (tool_input = None ):
12+ def generate_id (tool_input : str = None ) -> str :
1313 """
1414 Generates a unique Version 4 UUID.
1515 Useful for tagging tasks, creating transaction IDs, or tracking agent actions.
@@ -18,10 +18,10 @@ def generate_id(tool_input=None):
1818 return str (uuid .uuid4 ())
1919
2020 @tool ("Get Current Time" )
21- def get_current_time (tool_input = None ):
21+ def get_current_time (tool_input : str = None ) -> str :
2222 """
2323 Returns the current system date and time.
2424 Useful for agents that need to schedule events, check deadlines,
2525 or know 'what day is it today' to avoid hallucinations.
2626 """
27- return datetime .now ().strftime ("%Y-%m-%d %H:%M:%S" )
27+ return datetime .now ().strftime ("%Y-%m-%d %H:%M:%S" )
You can’t perform that action at this time.
0 commit comments