Skip to content

Refactor: Dynamically Populate Engine Identifiers in LLM Agent Tool Schema #74

Description

@BerryUIKI

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.

Activity

  1. added
    backendBackend Python / FastAPI / Engine issues
    architectureSystem architecture, contract invariants, and pipeline design
    on Oct 4, 2026
  2. BerryUIKI commented on Oct 4, 2026

    @BerryUIKI
    OwnerAuthor

    Resolved in PR #92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    architectureSystem architecture, contract invariants, and pipeline designbackendBackend Python / FastAPI / Engine issues

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions