Find answers from the community

Updated 4 months ago

The Gmail tool seems to fail when

At a glance
The Gmail tool seems to fail when loading in emails(but works fine when creating them). Even the first example on llamahub fails:

Example from LlamaHub:
tool_spec = GmailToolSpec()
agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
agent.chat('What is my most recent email')


TypeError: GmailToolSpec.search_messages() missing 1 required positional argument: 'query'

Anyone else know about this or have any ideas?
L
3 comments
Does it improve if you use gpt-4?

Plain Text
from llama_index.llms import OpenAI

...

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list(), llm=OpenAI(model="gpt-4"))

...
to me it seems like openai didn't write the proper inputs to the search_messages function?
setting verbose=True can help debug what the LLM is sending to the function
Add a reply
Sign up and join the conversation on Discord