mirror of
https://github.com/langgenius/dify.git
synced 2026-07-16 09:58:42 +08:00
POST /apps/<id>/agent/skills/<slug>/infer-tools reads the drive-stored SKILL.md (plus the manifest_files listing standardize now persists onto the skill ref), asks the tenant's default reasoning model once, and returns draft cli_tools with env_suggestions. Draft-only by design: nothing is persisted, saving still passes the composer's full shell/env/secret/ dangerous-command validation, env suggestions carry key+reason but never a value, and AgentCliToolConfig.inferred_from becomes an explicit provenance field for the "inferred from <skill>" badge. Unparsable model output retries once then maps to 422 inference_failed; no default model is a 400. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>