{"id":"compute.device--computeDeviceSelectionDecision","name":"computeDeviceSelectionDecision","owner":"yeho","package":"compute.device","kind":"thing","signature":"external thing computeDeviceSelectionDecision","description":"A compute device selection decision record carrying admitted, requestedBackend, selectedBackend, fallbackUsed, code, and related state.","context":"Inspect device capability catalogs and model resource lifetimes and placement decisions.","parameters":[],"returns":"void","members":[{"name":"admitted","kind":"field","type":"bool","description":"Stores admitted as bool.","signature":"bool admitted","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"requestedBackend","kind":"field","type":"text","description":"Stores requested backend as text.","signature":"text requestedBackend","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"selectedBackend","kind":"field","type":"text","description":"Stores selected backend as text.","signature":"text selectedBackend","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"fallbackUsed","kind":"field","type":"bool","description":"Stores fallback used as bool.","signature":"bool fallbackUsed","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"code","kind":"field","type":"text","description":"Stores code as text.","signature":"text code","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"message","kind":"field","type":"text","description":"Stores message as text.","signature":"text message","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"computeDeviceSelectionDecision","kind":"constructor","parameters":[{"name":"admitted","type":"bool","description":"Admitted."},{"name":"requestedBackend","type":"text","description":"Requested backend."},{"name":"selectedBackend","type":"text","description":"Selected backend."},{"name":"fallbackUsed","type":"bool","description":"Fallback used."},{"name":"code","type":"text","description":"Code."},{"name":"message","type":"text","description":"Message."}],"returns":"void","signature":"computeDeviceSelectionDecision(bool admitted, text requestedBackend, text selectedBackend, bool fallbackUsed, text code, text message)","description":"Compute device selection decision.","tags":["thing","constructor","compute.device"],"updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.device"],"exampleId":"method-Describe-7","updated":"2026-09-09"}],"tags":["compute","compute.device","cpu","device","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/device/resource_runtime.yh","line":28,"sha256":"2a92eeb7f80b133685f1201e550fc5c4e9cd54eda12e6a9f9d05bf033efb60f0"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use computeDeviceSelectionDecision","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.device\n\n// Inspect device capability catalogs and model resource lifetimes and placement decisions.\ncomputeDeviceSelectionDecision sample = computeDeviceSelectionDecision(true, \"requested Backend\", \"selected Backend\", true, \"code\", \"message\")\nConsole.Log(Text.From(sample.admitted))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__computedeviceselectiondecision\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"6616b044bcf60d122080d3c432ef4f3960ce5cd3b961b31d9d48ca858912112e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-7","title":"computeDeviceSelectionDecision.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Describe.\ncomputeDeviceSelectionDecision instance = computeDeviceSelectionDecision(true, \"requested Backend\", \"selected Backend\", true, \"code\", \"message\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__computedeviceselectiondecision\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"compute.buffer\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/buffer\"\n\n[[dependencies]]\npackage = \"compute.device\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/device\"\n\n[[dependencies]]\npackage = \"compute.tensor\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/tensor\"\n\n[[dependencies]]\npackage = \"console\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/console\"\n\n[[dependencies]]\npackage = \"diagnostics\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/diagnostics\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"57015fc0710222b8c73b89e397b1ddaaf130bd010ffdc99551a981bb718e3b94","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["admitted","requestedBackend","selectedBackend","fallbackUsed","code","message","computeDeviceSelectionDecision","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.device--computeDeviceSelectionDecision","json":"https://demonhunterlabs.com/reference/items/compute.device--computeDeviceSelectionDecision.json","markdown":"https://demonhunterlabs.com/reference/text/compute.device--computeDeviceSelectionDecision.md"}
