Skip to content

Commit

Permalink
enh: current time fc
Browse files Browse the repository at this point in the history
  • Loading branch information
tjbck committed Jun 1, 2024
1 parent a248b96 commit 8713480
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/function_calling/function_calling_filter_pipeline.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import os
import requests
from typing import Literal, List, Optional
from datetime import datetime


from blueprints.function_calling_blueprint import Pipeline as FunctionCallingBlueprint


Expand All @@ -14,6 +17,19 @@ class Tools:
def __init__(self, pipeline) -> None:
self.pipeline = pipeline

def get_current_time(
self,
) -> str:
"""
Get the current time.
:return: The current time.
"""

now = datetime.now()
current_time = now.strftime("%H:%M:%S")
return f"Current Time = {current_time}"

def get_current_weather(
self,
location: str,
Expand Down

0 comments on commit 8713480

Please sign in to comment.