Find answers from the community

Updated 3 months ago

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."
W
t
3 comments
Please remove openai key from your query!
@hichambouchtib
Ping because you don’t seem to look
Add a reply
Sign up and join the conversation on Discord