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

coral-web: connecting to tools with oauth requirement #273

Conversation

misspia-cohere
Copy link
Contributor

@misspia-cohere misspia-cohere commented Jun 24, 2024

Thank you for contributing to the Cohere Toolkit!

Prompts and links for users to connect to google drive

Screen.Recording.2024-06-24.at.17.48.42.mov
  • PR title: "area: description"

    • Where "area" is whichever of interface, frontend, model, tools, backend, etc. is being modified. Use "docs: ..." for purely docs changes, "infra: ..." for CI changes.
    • Example: "deployment: add Azure model option"
  • PR message: Delete this entire checklist and replace with

    • Description: a description of the change
    • Issue: the issue # it fixes, if applicable
    • Dependencies: any dependencies required for this change
  • Add tests and docs: Please include testing and documentation for your changes

  • Lint and test: Run make lint and make run-tests

AI Description

This PR introduces a new feature that prompts users to connect their data to enable tools and enhances the error message when authentication is required.

Changes:

  • Adds a new component, ConnectDataModal, which prompts users to connect their data to access the assistant's full potential.
  • Updates the useUnauthedTools hook to return a list of tools requiring authentication.
  • Introduces the ConnectDataBox component to inform users about the tools they need to connect.
  • Enhances the ComposerError component to display an error message when authentication is required before using the assistant.
  • Modifies the Composer component to handle the case when tool authentication is required, disabling the text area and send button.
  • Includes a new constant, unauthedToolsModalDismissed, to track the dismissal of the unauthed tools modal.

@misspia-cohere misspia-cohere changed the title coral-web: tools with oauth requirement coral-web: connecting to tools with oauth requirement Jun 24, 2024
@misspia-cohere misspia-cohere merged commit 054c57b into main Jun 25, 2024
1 of 2 checks passed
@misspia-cohere misspia-cohere deleted the pia/tlk-714-toolkiteno-assistant-with-connect-auth-requirement branch June 25, 2024 17:25
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.

3 participants