conductor-oss/conductor · error · IllegalArgumentException

Unknown gate type: {}

Error message

Unknown gate type: {}

What it means

Error "Unknown gate type: {}" thrown in conductor-oss/conductor.

Source

Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/compiler/GateCompiler.java:58

     * @param prevOutputRef Conductor expression referencing the previous stage's output
     * @return a fully configured WorkflowTask
     */
    @SuppressWarnings("unchecked")
    public static WorkflowTask compileGate(
            Map<String, Object> gateConfig, String refName, String prevOutputRef) {

        String type = (String) gateConfig.get("type");

        if ("text_contains".equals(type)) {
            return compileTextContainsGate(gateConfig, refName, prevOutputRef);
        }

        // Callable gate: SIMPLE task for SDK worker
        if (gateConfig.containsKey("taskName")) {
            return compileWorkerGate(gateConfig, refName, prevOutputRef);
        }

        throw new IllegalArgumentException("Unknown gate type: " + type);
    }

    private static WorkflowTask compileTextContainsGate(
            Map<String, Object> config, String refName, String prevOutputRef) {

        String text = (String) config.get("text");
        Object caseSensitiveObj = config.getOrDefault("caseSensitive", true);
        boolean caseSensitive =
                caseSensitiveObj instanceof Boolean ? (Boolean) caseSensitiveObj : true;

        String script =
                JavaScriptBuilder.iife(
                        "var content = String($.result || '');"
                                + (caseSensitive ? "" : "content = content.toLowerCase();")
                                + "var sentinel = "
                                + JavaScriptBuilder.toJson(
                                        caseSensitive ? text : text.toLowerCase())
                                + ";"

View on GitHub (pinned to cf7c3e4a8a)

Solutions

  1. Use a supported gate type in the gate configuration.
  2. Check the gate config spelling against the types GateCompiler handles.

When it happens

Trigger: Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/compiler/GateCompiler.java:58 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of conductor-oss/conductor@cf7c3e4a8a (2026-08-14). Data as JSON: /api/errors/7f36b343167bf812. Report an issue: GitHub.