Find answers from the community

Home
Members
hichambouchtib
h
hichambouchtib
Offline, last seen 3 months ago
Joined September 25, 2024
h
hichambouchtib
·

RAG

hello Everyone im new to LlamaIndex and i'm trying to build my Google Calender Agent, i have already created a project in google and i got my Credential.json file and then i uploaded it into Google Colab and this is
My code : "

Setup OpenAI Agent

import openai

openai.api_key = "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"
from llama_index.agent.openai import OpenAIAgent

Import and initialize our tool spec

from llama_index.tools.google import GoogleCalendarToolSpec

tool_spec = GoogleCalendarToolSpec()

Create the Agent with our tools

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list(), verbose=True)
agent.chat("what is the first thing on my calendar today")"

the error : "It seems there was an error while trying to access your calendar. Please make sure that the necessary credentials are set up for accessing your calendar data."
3 comments
t
W