{"record":{"id":"4c6347a6ed6dc55d","repo":"conductor-oss/conductor","slug":"rawconfig-assistantid-is-required-for-azure-foundr","errorCode":null,"errorMessage":"rawConfig.assistantId is required for Azure Foundry agent requests","messagePattern":"rawConfig\\.assistantId is required for Azure Foundry agent requests","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java","lineNumber":369,"sourceCode":"    private String resolveEndpoint(ConductorAgentStartRequest request) {\n        String endpoint = rawConfig(request, \"endpoint\");\n        if (StringUtils.isBlank(endpoint)) {\n            endpoint = credentialResolutionService.resolve(\"AZURE_FOUNDRY_ENDPOINT\");\n        }\n        if (StringUtils.isBlank(endpoint)) {\n            throw new IllegalArgumentException(\n                    \"Azure Foundry endpoint must be provided via rawConfig.endpoint or AZURE_FOUNDRY_ENDPOINT secret\");\n        }\n        return endpoint.endsWith(\"/\") ? endpoint.substring(0, endpoint.length() - 1) : endpoint;\n    }\n\n    private String resolveAssistantId(ConductorAgentStartRequest request) {\n        String id = rawConfig(request, \"assistantId\");\n        if (StringUtils.isBlank(id)) {\n            id = rawConfig(request, \"agentId\");\n        }\n        if (StringUtils.isBlank(id)) {\n            throw new IllegalArgumentException(\n                    \"rawConfig.assistantId is required for Azure Foundry agent requests\");\n        }\n        return id;\n    }\n\n    private JsonNode post(String url, ObjectNode body, String bearerToken, String apiVersion) {\n        byte[] bytes;\n        try {\n            bytes = MAPPER.writeValueAsBytes(body);\n        } catch (IOException e) {\n            throw new RuntimeException(\"Failed to serialize request body\", e);\n        }\n        String fullUrl = url.contains(\"?\") ? url : url + \"?api-version=\" + apiVersion;\n        Request request =\n                new Request.Builder()\n                        .url(fullUrl)\n                        .post(RequestBody.create(bytes, JSON))\n                        .header(\"Authorization\", \"Bearer \" + bearerToken)","sourceCodeStart":351,"sourceCodeEnd":387,"githubUrl":"https://github.com/conductor-oss/conductor/blob/cf7c3e4a8adfb158be778ab1ec525323c363cd3a/agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java#L351-L387","documentation":"Error \"rawConfig.assistantId is required for Azure Foundry agent requests\" thrown in conductor-oss/conductor.","triggerScenarios":"Thrown at agentspan/src/main/java/org/conductoross/conductor/ai/agentspan/runtime/service/AzureFoundryAgentClient.java:369 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set rawConfig.assistantId to the id of the Azure Foundry assistant/agent to invoke."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"cf7c3e4a8adfb158be778ab1ec525323c363cd3a","analyzedAt":"2026-08-14T03:33:19.897Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}