def getSwarmModelParams(modelID):
<EOL>cjDAO = ClientJobsDAO.get()<EOL>(jobID, description) = cjDAO.modelsGetFields(<EOL>modelID,<EOL>["<STR_LIT>", "<STR_LIT>"])<EOL>(baseDescription,) = cjDAO.jobGetFields(jobID, ["<STR_LIT>"])<EOL>descriptionDirectory = tempfile.mkdtemp()<EOL>try:<EOL><INDENT>baseDescriptionFilePath = os.path.join(descriptionDirectory, "<STR_LIT>")<EOL>with open(baseDescriptionFilePath, mode="<STR_LIT:wb>") as f:<EOL><INDENT>f.write(baseDescription)<EOL><DEDENT>descriptionFilePath = os.path.join(descriptionDirectory, "<STR_LIT>")<EOL>with open(descriptionFilePath, mode="<STR_LIT:wb>") as f:<EOL><INDENT>f.write(description)<EOL><DEDENT>expIface = helpers.getExperimentDescriptionInterfaceFromModule(<EOL>helpers.loadExperimentDescriptionScriptFromDir(descriptionDirectory))<EOL>return json.dumps(<EOL>dict(<EOL>modelConfig=expIface.getModelDescription(),<EOL>inferenceArgs=expIface.getModelControl().get("<STR_LIT>", None)))<EOL><DEDENT>finally:<EOL><INDENT>shutil.rmtree(descriptionDirectory, ignore_errors=True)<EOL><DEDENT>
Retrieve the Engine-level model params from a Swarm model

    Args:
      modelID - Engine-level model ID of the Swarm model

    Returns:
      JSON-encoded string containing Model Params