Skip to content

fix(dify-plugin): optimize parameter form types and bump version to 0.0.2#203

Merged
hzxuzhonghu merged 1 commit intovolcano-sh:mainfrom
ifelseend:dify-plugin
Feb 6, 2026
Merged

fix(dify-plugin): optimize parameter form types and bump version to 0.0.2#203
hzxuzhonghu merged 1 commit intovolcano-sh:mainfrom
ifelseend:dify-plugin

Conversation

@ifelseend
Copy link
Contributor

What type of PR is this?
/kind bug

What this PR does / why we need it:

  • Change router_url and workload_manager_url to form: form (fixed settings)
  • Change session_id and session_reuse to form: llm (LLM-controlled)
  • Change code_interpreter_id to form: llm (dynamic multi-language support)
  • Bump plugin version from 0.0.1 to 0.0.2

Which issue(s) this PR fixes:
Fixes #202

Special notes for your reviewer:
NONE

Does this PR introduce a user-facing change?:
NONE

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ifelseend, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the Dify plugin's parameter handling for the Agentcube code interpreter tool. The changes involve adjusting the form types for several parameters to better align with their intended control mechanism, either fixed form settings or LLM-driven. This optimization aims to improve the flexibility and clarity of how these parameters are managed within the plugin, alongside a minor version update.

Highlights

  • Parameter Form Type Optimization: The router_url and workload_manager_url parameters have been updated to use a fixed form type, moving them from LLM-controlled settings.
  • LLM-Controlled Parameters: The session_id, session_reuse, and code_interpreter_id parameters are now configured as llm controlled, allowing for dynamic management by the LLM.
  • Version Bump: The Dify plugin version has been incremented from 0.0.1 to 0.0.2 to reflect these changes.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • integrations/dify-plugin/manifest.yaml
    • Updated the plugin version from 0.0.1 to 0.0.2.
    • Updated the meta version from 0.0.1 to 0.0.2.
  • integrations/dify-plugin/tools/agentcube-code-interpreter.yaml
    • Changed the form type for router_url parameter from llm to form.
    • Changed the form type for workload_manager_url parameter from llm to form.
    • Changed the form type for session_id parameter from form to llm.
    • Changed the form type for session_reuse parameter from form to llm.
    • Changed the form type for code_interpreter_id parameter from form to llm.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request bumps the dify-plugin version to 0.0.2 and optimizes parameter form types. The changes correctly update router_url and workload_manager_url to be fixed form settings, and session_id, session_reuse, and code_interpreter_id to be LLM-controlled, which aligns with the stated goals. The changes are logical and well-contained. I have one minor suggestion to improve code style.

en_US: ID of the Agentcube code interpreter to use
llm_description: The ID of the code interpreter to use. Optional for python (defaults to built-in). REQUIRED for javascript or typescript to use your custom code interpreter.
form: form
form: llm
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

There is a trailing whitespace at the end of this line. It's good practice to remove trailing whitespace to keep the codebase clean and prevent potential parsing issues with certain YAML parsers.

    form: llm

@codecov-commenter
Copy link

codecov-commenter commented Feb 5, 2026

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 35.77%. Comparing base (845b798) to head (0cfd2b0).
⚠️ Report is 46 commits behind head on main.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #203      +/-   ##
==========================================
+ Coverage   35.60%   35.77%   +0.16%     
==========================================
  Files          29       29              
  Lines        2533     2549      +16     
==========================================
+ Hits          902      912      +10     
- Misses       1505     1511       +6     
  Partials      126      126              
Flag Coverage Δ
unittests 35.77% <ø> (+0.16%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

….0.2

- Change router_url and workload_manager_url to form: form (fixed settings)
- Change session_id and session_reuse to form: llm (LLM-controlled)
- Change code_interpreter_id to form: llm (dynamic multi-language support)
- Change author to volcano-sh for workflow compatibility
- Bump plugin version from 0.0.1 to 0.0.2

Signed-off-by: ifelseend <1003324934@qq.com>
Copy link
Member

@hzxuzhonghu hzxuzhonghu left a comment

Choose a reason for hiding this comment

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

/lgtm

@hzxuzhonghu
Copy link
Member

/approve

@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hzxuzhonghu

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hzxuzhonghu
Copy link
Member

/lgtm

1 similar comment
@hzxuzhonghu
Copy link
Member

/lgtm

@hzxuzhonghu hzxuzhonghu merged commit 93b8295 into volcano-sh:main Feb 6, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[dify-plugin] Optimize parameter form types for better UX

4 participants