conductor-oss/conductor · error · IllegalArgumentException

rawConfig.assistantId is required for Azure Foundry agent re

Error message

rawConfig.assistantId is required for Azure Foundry agent requests

What it means

Error "rawConfig.assistantId is required for Azure Foundry agent requests" thrown in conductor-oss/conductor.

Source

Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:369

    private String resolveEndpoint(ConductorAgentStartRequest request) {
        String endpoint = rawConfig(request, "endpoint");
        if (StringUtils.isBlank(endpoint)) {
            endpoint = credentialResolutionService.resolve("AZURE_FOUNDRY_ENDPOINT");
        }
        if (StringUtils.isBlank(endpoint)) {
            throw new IllegalArgumentException(
                    "Azure Foundry endpoint must be provided via rawConfig.endpoint or AZURE_FOUNDRY_ENDPOINT secret");
        }
        return endpoint.endsWith("/") ? endpoint.substring(0, endpoint.length() - 1) : endpoint;
    }

    private String resolveAssistantId(ConductorAgentStartRequest request) {
        String id = rawConfig(request, "assistantId");
        if (StringUtils.isBlank(id)) {
            id = rawConfig(request, "agentId");
        }
        if (StringUtils.isBlank(id)) {
            throw new IllegalArgumentException(
                    "rawConfig.assistantId is required for Azure Foundry agent requests");
        }
        return id;
    }

    private JsonNode post(String url, ObjectNode body, String bearerToken, String apiVersion) {
        byte[] bytes;
        try {
            bytes = MAPPER.writeValueAsBytes(body);
        } catch (IOException e) {
            throw new RuntimeException("Failed to serialize request body", e);
        }
        String fullUrl = url.contains("?") ? url : url + "?api-version=" + apiVersion;
        Request request =
                new Request.Builder()
                        .url(fullUrl)
                        .post(RequestBody.create(bytes, JSON))
                        .header("Authorization", "Bearer " + bearerToken)

View on GitHub (pinned to cf7c3e4a8a)

Solutions

  1. Set rawConfig.assistantId to the id of the Azure Foundry assistant/agent to invoke.

When it happens

Trigger: Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:369 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/4c6347a6ed6dc55d. Report an issue: GitHub.