Draft: [skip ci] Add table for Duo workflow session files

What does this MR do and why?

A PoC to the new duo_workflows_session_files table and relevant file upload MRs.

This MR contains the bare minimum to end to end test the code, but ignores file deletion, docs, etc.

References

MR to add table and model: !261463 (merged)

How to set up and validate locally

  1. Check out the code and the AIGW code gitlab-org/modelops/applied-ml/code-suggestions/ai-assist!6949 (closed)
  2. gdk restart duo-workflow-service
  3. Enable Feature.enable(:dap_web_chat_file_attachments)
  4. In Agentic Duo Chat on the web, click the + on the bottom left corner, click "Attach image"
  5. Ask Duo "What is this image"
  6. You should notice
    1. In the network tab, a request is made to session_files
    2. The websocket (ws) connect, messages tab, user message (green), has an attachments additional context, that contains the URl.
    3. Duo is able to respond.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Kaveh Nejad

Merge request reports

Loading
Loading