Skip to content

Commit

Permalink
updated assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanjaypranav committed Sep 11, 2023
1 parent ec15ab1 commit 37635d9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import os
import pinecone
from tools.dbbase import SQLDatabase
from tools.cal_eve import event
# from tools.cal_eve import event
from tools.constants import prompt
from tools.vectorstore import vectordb
from tools.dbchain import SQLDatabaseChain
Expand All @@ -23,6 +23,7 @@
from sqlalchemy import create_engine
# import summarization memory
from langchain.memory import ConversationSummaryBufferMemory
from sayvai_tools.tools.calendar import Calendar as GCalender


with open("openai_api_key.txt", "r") as f:
Expand Down Expand Up @@ -88,8 +89,8 @@ def intialize_tools(self):
),
Tool(
name="calendar",
func=event,
description="useful when you need to schedule an event. Input should be start and end time(Example input:2023,10,20,13,30/ 2023,10,20,14,00 as string not as json."
func=GCalender()._run,
description="useful when you need to schedule an event. Input should be start and end time(Example input:2023,10,20,13,30/ 2023,10,20,14,00/mail"
),
]
else :
Expand Down

0 comments on commit 37635d9

Please sign in to comment.