Skip to content

Conversation

@hirokiterashima
Copy link
Member

@hirokiterashima hirokiterashima commented May 7, 2025

Changes

  • Add a feature to the AIChat component that can see what the student types in the Open Response component and send it to the AI, but does not show it in the chat transcript that is displayed to the student.
  • Add connected component authoring in the AIChat advanced editing view

Test Prep

  1. Make sure you have the OpenAI API key set in your properties file
  2. Make sure that you're logged in to WISE (API key won't work unless you're logged in)
  3. Import this unit:
    680.zip
  4. Set up a run with the unit and associate a student with it

Test

  1. Log in as a student and work on the run. You should expect the AI to be able to read what you type in the OR component as you chat with it in the AIChat component.
  2. Log in as a teacher and make sure that you can see the work in the Teacher Tools
    • try exporting data and make sure that the data is present in the export
  3. Try authoring your own step with this OR-AIChat connection and make sure that it behaves as you'd expect
    • to connect AIChat to OR, go to AIChat's advanced authoring and use the connected component authoring. Choose the "Import Work" option.

Closes #2168

@hirokiterashima hirokiterashima self-assigned this May 7, 2025
@hirokiterashima hirokiterashima added the enhancement New feature of any size or improvement (UI, performance, security) label May 7, 2025
@hirokiterashima hirokiterashima marked this pull request as ready for review May 7, 2025 21:12
Copy link
Contributor

@Aaron-Detre Aaron-Detre left a comment

Choose a reason for hiding this comment

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

Everything seems to work, but when I click "See revisions" under the open response section, I only see the latest instead of any previous versions that I had when I sent a chat message, but I'm not sure if it's necessary/possible to see all the versions. Other than that, it all looks good!

Copy link
Member

@breity breity left a comment

Choose a reason for hiding this comment

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

Functionality works well. 👍

See comment about test. Good to merge once that is addressed.

Also would be helpful to show the OR content that corresponds to each round of AI guidance somehow, as we discussed. We can do this in another PR.

@hirokiterashima hirokiterashima merged commit b9c9cb3 into develop May 28, 2025
5 of 6 checks passed
@hirokiterashima hirokiterashima deleted the issue-2168-ai-chat-open-response-connect branch May 28, 2025 16:49
@hirokiterashima
Copy link
Member Author

🎉 This PR is included in version 5.187.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

enhancement New feature of any size or improvement (UI, performance, security) released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(AIChat): Connect to Open Response

4 participants