Update app.py
Browse files
app.py
CHANGED
@@ -7,18 +7,16 @@ from agno.models.google import Gemini
|
|
7 |
from agno.tools.googlecalendar import GoogleCalendarTools
|
8 |
import datetime
|
9 |
from zoneinfo import ZoneInfo
|
|
|
10 |
|
11 |
load_dotenv()
|
12 |
|
13 |
app = FastAPI()
|
14 |
|
15 |
-
TWILIO_ACCOUNT_SID = 'ACc2daaa501806cfafa344eb2c87a35316'
|
16 |
-
TWILIO_AUTH_TOKEN = '9514033d2de1a04cae9e9a9e53efb374'
|
17 |
-
|
18 |
agent = Agent(
|
19 |
model=Gemini(
|
20 |
id="gemini-2.5-pro-exp-03-25",
|
21 |
-
api_key="
|
22 |
),
|
23 |
tools=[GoogleCalendarTools(credentials_path="./credentials.json",token_path="./token.json")],
|
24 |
show_tool_calls=True,
|
@@ -67,7 +65,6 @@ agent = Agent(
|
|
67 |
|
68 |
Your goal is to gather the necessary information from the user to create a calendar event, and make sure to include the doctor as an attendee.
|
69 |
"""
|
70 |
-
|
71 |
],
|
72 |
add_datetime_to_instructions=True,
|
73 |
add_history_to_messages=True,
|
|
|
7 |
from agno.tools.googlecalendar import GoogleCalendarTools
|
8 |
import datetime
|
9 |
from zoneinfo import ZoneInfo
|
10 |
+
import os
|
11 |
|
12 |
load_dotenv()
|
13 |
|
14 |
app = FastAPI()
|
15 |
|
|
|
|
|
|
|
16 |
agent = Agent(
|
17 |
model=Gemini(
|
18 |
id="gemini-2.5-pro-exp-03-25",
|
19 |
+
api_key=os.getenv("gemini_key")
|
20 |
),
|
21 |
tools=[GoogleCalendarTools(credentials_path="./credentials.json",token_path="./token.json")],
|
22 |
show_tool_calls=True,
|
|
|
65 |
|
66 |
Your goal is to gather the necessary information from the user to create a calendar event, and make sure to include the doctor as an attendee.
|
67 |
"""
|
|
|
68 |
],
|
69 |
add_datetime_to_instructions=True,
|
70 |
add_history_to_messages=True,
|