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

feat: array support in custom tool OpenAPI input #11479

Closed
4 of 5 tasks
du00cs opened this issue Dec 9, 2024 · 3 comments
Closed
4 of 5 tasks

feat: array support in custom tool OpenAPI input #11479

du00cs opened this issue Dec 9, 2024 · 3 comments
Labels
💪 enhancement New feature or request 🔨 feat:tools Tools for agent, function call related stuff.

Comments

@du00cs
Copy link

du00cs commented Dec 9, 2024

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I'm trying to use a custom tool of something like this:

openapi: 3.0.0
info:
  title: fake title
  description: API for creating recommended actions
  version: 1.0.0
servers:
  - url: https://abc.com
paths:
  /recommended_actions:
    post:
      summary: a summary
      description: a description
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                actions:
                  type: array
                  items: 
                    type: string
                  description: ...
                tts:
                  type: string
                  description: ...
      responses:
        '200':
          description: ... successfully

the actions field is declared to be array[string], but actually
image

and this will make the function call parameters to be string.

2. Additional context or comments

No response

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
@dosubot dosubot bot added 💪 enhancement New feature or request 🔨 feat:tools Tools for agent, function call related stuff. labels Dec 9, 2024
@du00cs
Copy link
Author

du00cs commented Dec 9, 2024

Maybe I can contribute to this feature, but actually I don't know how to.

@pigracing
Copy link

i have the same question, anybody who knows how to do?

Copy link

dosubot bot commented Feb 6, 2025

Hi, @du00cs. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • The issue involves the actions field in OpenAPI input being treated as a string instead of array[string].
  • This affects function call parameters in custom tools.
  • You expressed interest in contributing to a feature update but need guidance.
  • Another user, @pigracing, has also encountered this issue and is seeking help.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 6, 2025
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 21, 2025
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪 enhancement New feature or request 🔨 feat:tools Tools for agent, function call related stuff.
Projects
None yet
Development

No branches or pull requests

2 participants