Skip to content

Commit

Permalink
feat: Added get_current_time function (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
onuratakan authored Jul 8, 2024
1 parent 94a147b commit 8f15bf5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion gpt_computer_assistant/standard_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import requests
import re
from urllib.parse import urljoin
from urllib.parse import urljoin
import datetime

from .tooler import tool
from .top_bar_wrapper import wrapper
Expand Down Expand Up @@ -201,6 +201,17 @@ def app_close(app_name: str) -> bool:



@register_tool
@wrapper
def get_current_time() -> str:
"""
Get the current time in ISO format.
"""
return datetime.datetime.now().isoformat()




def get_standard_tools():
print("Tool len", len(_standard_tools_))
last_list = [_standard_tools_[each] for each in _standard_tools_]
Expand Down

0 comments on commit 8f15bf5

Please sign in to comment.