{"id":"compute.device--deviceBackendCapability","name":"deviceBackendCapability","owner":"yeho","package":"compute.device","kind":"thing","signature":"external thing deviceBackendCapability","description":"A device backend capability record carrying backend, family, runtimeReady, placementSupported, mixedExecutionSupported, and related state.","context":"Inspect device capability catalogs and model resource lifetimes and placement decisions.","parameters":[],"returns":"void","members":[{"name":"backend","kind":"field","type":"text","description":"Stores backend as text.","signature":"text backend","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"family","kind":"field","type":"text","description":"Stores family as text.","signature":"text family","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"runtimeReady","kind":"field","type":"bool","description":"Stores runtime ready as bool.","signature":"bool runtimeReady","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"placementSupported","kind":"field","type":"bool","description":"Stores placement supported as bool.","signature":"bool placementSupported","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"mixedExecutionSupported","kind":"field","type":"bool","description":"Stores mixed execution supported as bool.","signature":"bool mixedExecutionSupported","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"fallbackBackend","kind":"field","type":"text","description":"Stores fallback backend as text.","signature":"text fallbackBackend","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"status","kind":"field","type":"text","description":"Stores status as text.","signature":"text status","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"notes","kind":"field","type":"text","description":"Stores notes as text.","signature":"text notes","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"deviceBackendCapability","kind":"constructor","parameters":[{"name":"backend","type":"text","description":"Backend."},{"name":"family","type":"text","description":"Family."},{"name":"runtimeReady","type":"bool","description":"Runtime ready."},{"name":"placementSupported","type":"bool","description":"Placement supported."},{"name":"mixedExecutionSupported","type":"bool","description":"Mixed execution supported."},{"name":"fallbackBackend","type":"text","description":"Fallback backend."},{"name":"status","type":"text","description":"Status."},{"name":"notes","type":"text","description":"Notes."}],"returns":"void","signature":"deviceBackendCapability(text backend, text family, bool runtimeReady, bool placementSupported, bool mixedExecutionSupported, text fallbackBackend, text status, text notes)","description":"Device backend capability.","tags":["thing","constructor","compute.device"],"updated":"2026-09-09"},{"name":"IsReady","kind":"method","parameters":[],"returns":"bool","signature":"IsReady() returns bool","description":"Is ready.","tags":["thing","method","compute.device"],"exampleId":"method-IsReady-9","updated":"2026-09-09"},{"name":"HasFallback","kind":"method","parameters":[],"returns":"bool","signature":"HasFallback() returns bool","description":"Has fallback.","tags":["thing","method","compute.device"],"exampleId":"method-HasFallback-10","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-11","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/device.yh","line":43,"sha256":"d567cec5c410960532c93c94cdb489280cbff52cec7785f98104cb8cd3ee181c"},"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 deviceBackendCapability","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.\ndeviceBackendCapability sample = deviceBackendCapability(\"cpu-oracle\", \"cpu\", true, true, true, \"fallback Backend\", \"ready\", \"notes\")\nConsole.Log(Text.From(sample.backend))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicebackendcapability\"\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":"ca8a8f91d0538b38c1137729914ffa24afbb9acf85feb3980b87796695fdd606","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsReady-9","title":"deviceBackendCapability.IsReady","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Is ready.\ndeviceBackendCapability instance = deviceBackendCapability(\"cpu-oracle\", \"cpu\", true, true, true, \"fallback Backend\", \"ready\", \"notes\")\nbool result = instance.IsReady()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicebackendcapability\"\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":"3ea2307580760925e549650036ca2dafb4eaf826cbf2cbcfa2ecff15148d8af2","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-HasFallback-10","title":"deviceBackendCapability.HasFallback","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Has fallback.\ndeviceBackendCapability instance = deviceBackendCapability(\"cpu-oracle\", \"cpu\", true, true, true, \"fallback Backend\", \"ready\", \"notes\")\nbool result = instance.HasFallback()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicebackendcapability\"\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":"7b938634d046c2c8f3eb36052020c78620c9538fec3ac28c1a41c136f05e1980","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-11","title":"deviceBackendCapability.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.\ndeviceBackendCapability instance = deviceBackendCapability(\"cpu-oracle\", \"cpu\", true, true, true, \"fallback Backend\", \"ready\", \"notes\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicebackendcapability\"\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":"53e0f201ee02879113b29638b31c9c66656c69f7e233429f258266e2e935a150","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["backend","family","runtimeReady","placementSupported","mixedExecutionSupported","fallbackBackend","status","notes","deviceBackendCapability","IsReady","HasFallback","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.device--deviceBackendCapability","json":"https://demonhunterlabs.com/reference/items/compute.device--deviceBackendCapability.json","markdown":"https://demonhunterlabs.com/reference/text/compute.device--deviceBackendCapability.md"}
