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

Custom tool parameter cannot suport constant value in 0.11.1 #10935

Open
5 tasks done
mboo2005 opened this issue Nov 21, 2024 · 0 comments
Open
5 tasks done

Custom tool parameter cannot suport constant value in 0.11.1 #10935

mboo2005 opened this issue Nov 21, 2024 · 0 comments
Labels
🐞 bug Something isn't working 🔨 feat:tools Tools for agent, function call related stuff.

Comments

@mboo2005
Copy link

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.11.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Custom tool parameter type is integer. There is constant value in 0.8.3 when used in workflow. But when I upgraded to 0.11.1 the constant selection is missing. Where is the constant input box??
image

tool config

/v1/assets/random_value:
post:
summary: Generate a random value
description: Generates a random value based on the provided key and size.
operationId: assetsRandomValue
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
key:
type: string
description: The key used to generate the random value.
size:
type: integer
description: The size of the random value to generate.
default: 1
required:
- key

✔️ Expected Behavior

Custom tool parameter supports constant values. No variables are needed. This is very common in a paged API, such as when the pageSize and pageNumber parameters are assigned custom values.

❌ Actual Behavior

There is no constant value selection instead

@dosubot dosubot bot added 🐞 bug Something isn't working 🔨 feat:tools Tools for agent, function call related stuff. labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working 🔨 feat:tools Tools for agent, function call related stuff.
Projects
None yet
Development

No branches or pull requests

1 participant