Skip to content

Custom tool parameter cannot suport constant value in 0.11.1 #10935

@mboo2005

Description

@mboo2005

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐞 bugSomething isn't working🔨 feat:toolsTools for agent, function call related stuff.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions