Description
In backend/app/core/llm_client.py, AGENT_TOOLS_SCHEMA contains hardcoded runner enum values (fal_ai, siliconflow, managed_comfyui).
Impact
Adding or modifying runners requires manual schema synchronization, risking tool-calling validation failures if runner identifiers drift.
Affected Files
backend/app/core/llm_client.py
Proposed Remediation
Dynamically inject valid engine IDs from the registered node runner catalog into the tool schema.
Description
In
backend/app/core/llm_client.py,AGENT_TOOLS_SCHEMAcontains hardcoded runner enum values (fal_ai,siliconflow,managed_comfyui).Impact
Adding or modifying runners requires manual schema synchronization, risking tool-calling validation failures if runner identifiers drift.
Affected Files
backend/app/core/llm_client.pyProposed Remediation
Dynamically inject valid engine IDs from the registered node runner catalog into the tool schema.