Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Gmail Loader component created #3241

Merged

Conversation

edwinjosechittilappilly
Copy link
Collaborator

Added Custom Gmail Chat loader to load emails using service account token as json string

Requesting review:
@jordanrfrazier @nicoloboschi

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request python Pull requests that update Python code labels Aug 8, 2024
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-3241.dmtpw4p5recq1.amplifyapp.com

Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @edwinjosechittilappilly

How are you?

Thanks for this component. It is looking good. I've left some comments.

src/backend/base/langflow/components/data/Gmail.py Outdated Show resolved Hide resolved
Errors Resolved.

Suggestion from @ogabrielluiz added.

Note this is a ChatLoader, since GmailLoader uses the BaseChatloader as base class.

But this would be a highly useful feature. if required i could rewrite the component as document loader. but either way this would be an amazing feature.

Planning to publish gmails tools also in next steps mostly.
@edwinjosechittilappilly
Copy link
Collaborator Author

Hi @ogabrielluiz
Thanks for the review.
I have resolved with comments.

We are using this component as well as the Google Drive component for our internal project as custom components.

Hence thought of contributing these components back to the community.
Looking forward to show the demo of the browser extension once it completed.

Copy link
Contributor

@ogabrielluiz ogabrielluiz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

LGTM

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 8, 2024
Key Changes:
1.	Added Optional to the import statement.
2.	Updated the type hint of label_ids to Optional[List[str]] to allow it to be None or a list of strings.
@jordanrfrazier jordanrfrazier enabled auto-merge (squash) August 12, 2024 18:32
@jordanrfrazier jordanrfrazier merged commit 9d8009f into langflow-ai:main Aug 12, 2024
51 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request lgtm This PR has been approved by a maintainer python Pull requests that update Python code size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants