OpenFn / OpenFn/apollo

Job_chat: make legacy suggest_code mode default

Open
#491 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

refactor
Dominant language
Jupyter Notebook
Stars
5
Forks
10
Avg merge
2d 20h
Merged PRs (30d)
17

Description

When we implemented job code suggestions in job_chat, we implemented the suggest_code mode to keep the code backwards-compatible. We have separate modes and prompts in the code which could now be simplified.

Before doing so, verify that the snapshot view-only mode is not relevant to job_chat, as workflow_chat has a view-only mode which we still need. Verify that it should not be implemented in job_chat as well.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the job_chat implementation and its suggest_code modes and prompts, then compare them with workflow_chat and its snapshot view-only mode. Verify whether view-only belongs only to workflow_chat; done means legacy suggest_code is the default, redundant job_chat modes and prompts are simplified, and view-only remains excluded from job_chat.

Written by the indexing model from the issue text.

Assessment

Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.