Files
dify/api/tests/unit_tests/controllers/console
Yansong Zhang b0c40b601f feat(api): infer CLI tool + ENV suggestions from a skill — ENG-371
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>
2026-06-12 14:41:04 +08:00
..
2026-06-05 09:38:42 +00:00