Skip to content

[Bug]: GmailToolSpec.load_data() applies GmailToolSpec.search_messages() without arguments #18414

@nathan-cicero

Description

@nathan-cicero

Bug Description

GmailToolSpec.load_data() applies GmailToolSpec.search_messages() without arguments:

  def load_data(self) -> List[Document]:
      """Load emails from the user's account."""
      self._cache_service()

      return self.search_messages()

Version

latest

Steps to Reproduce

from llama_hub.tools.gmail.base import GmailToolSpec

tool_spec = GmailToolSpec()

agent = OpenAIAgent.from_tools(tool_spec.to_tool_list())
agent.chat("...")

Relevant Logs/Tracbacks

in `load_data() `search_messages()` missing 1 required positional argument: 'query'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs to be triaged/prioritized

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions