Skip to content

Conversation

@gvilums
Copy link
Contributor

@gvilums gvilums commented Aug 18, 2023

This PR introduces SID as a new tool available to the agent. The changes mostly concern

  • Expose SID as a tool
  • Handle the authorization process
  • Allow the user to connect and disconnect their SID integration in the frontend

ruflair and others added 12 commits August 17, 2023 15:39
A new import 'SIDSearch' from 'reworkd_platform.web.api.agent.tools' has been added to the 'tools.py' file. Now, the SIDSearch tool is also available for use along with Image, Search, and Code.
…ity (add-sid)

Add a blank line in search.py. Change database settings in settings.py and add refresh token for debug. Create new file sidsearch.py that implements SID search functionality through various platforms like Google Drive, Notion, GMail, etc. using user's personal refresh token.
Added a comment in sidsearch.py to clarify that the access token should
not be hardcoded, but obtained through an auth token exchange. The
Bearer token in the 'Authorization' header has been changed as well.
…s and functionality (add-sid)

The new ConnectSidButton component has been created and added to the settings page. This component provides functionality for connecting and disconnecting SID, with different button styles for different states. The button dimensions and font scale can be customized via component props. Disconnect functionality is currently a placeholder and needs to be implemented.

In addition, minor formatting adjustments were made to the settings page for better readability and consistency.
…-sid)

The authorization field in the headers of the _sid_search_results function has been updated to a placeholder. Additionally, the description field of the SIDSearch class has been revised to provide more accurate information about the tool's functionality.
@vercel
Copy link

vercel bot commented Aug 18, 2023

@gvilums is attempting to deploy a commit to the reworkd Team on Vercel.

A member of the Team first needs to authorize it.

@ergomake
Copy link

ergomake bot commented Aug 18, 2023

Hi 👋

Here's a preview environment 🚀

https://next-reworkd-agentgpt-1244.env.ergomake.link

Environment Summary 📑

Container Source URL
next Dockerfile https://next-reworkd-agentgpt-1244.env.ergomake.link
platform Dockerfile https://platform-reworkd-agentgpt-1244.env.ergomake.link
db Dockerfile [not exposed - internal service]
weaviate semitechnologies/weaviate:1.19.6 https://weaviate-reworkd-agentgpt-1244.env.ergomake.link

Here are your environment's logs.

For questions or comments, join Discord.

Click here to disable Ergomake.

@awtkns
Copy link
Contributor

awtkns commented Aug 20, 2023

Hey @gvilums @ruflair is this feature complete? Wondering if it is good to review?

return False

# use refresh token to revoke access
delete_token = encryption_service.decrypt(creds.refresh_token_enc)
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be best just to remove the row from the db here. How would i re-authenticate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When implementing I though that only soft deletes were supported. I changed it to a hard delete, such that the row is actually removed from the db.

@ruflair
Copy link
Contributor

ruflair commented Aug 20, 2023

@awtkns I am still cleaning some stuff up right now

@gvilums
Copy link
Contributor Author

gvilums commented Aug 21, 2023

@awtkns We finished the integration of the button and applied the suggestions you made. This should be ready for final review now.

@awtkns
Copy link
Contributor

awtkns commented Aug 21, 2023

Looks good to me. Have some changes I will push up in the morning to fixup styling, typing and some minor refactors. We can go live tmrw!

@awtkns awtkns merged commit a9acbdc into reworkd:main Aug 21, 2023
Copy link

@IDOTITOLDYASUCKAS IDOTITOLDYASUCKAS left a comment

Choose a reason for hiding this comment

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

Cool I like it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants