langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
53.23k stars 7.77k forks source link

Add support for OpenAPI schema containing objects in custom tools #11021

Open tucnak opened 6 days ago

tucnak commented 6 days ago

Self Checks

Dify version

v0.11.2

Cloud or Self Hosted

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

See any OpenAPI schema containing objects like DeepL.

✔️ Expected Behavior

I understand that as it currently stands the tools must be configured via non-object fields, however I don't understand why there can't be a JSON template-like placeholder for it, with variables being injected (and escaped automatically) by means of binding.

We have to use lots of workflows-as-tools with Code blocks to make anything work, the only escape hatch available.

❌ Actual Behavior

invalid schema, please check the url you provided