{"id":"compute.device--deviceDiscoveryRecord","name":"deviceDiscoveryRecord","owner":"yeho","package":"compute.device","kind":"thing","signature":"external thing deviceDiscoveryRecord","description":"A device discovery record record carrying backend, family, vendor, status, placement, 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":"vendor","kind":"field","type":"text","description":"Stores vendor as text.","signature":"text vendor","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":"placement","kind":"field","type":"text","description":"Stores placement as text.","signature":"text placement","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":"deviceDiscoveryRecord","kind":"constructor","parameters":[{"name":"backend","type":"text","description":"Backend."},{"name":"family","type":"text","description":"Family."},{"name":"vendor","type":"text","description":"Vendor."},{"name":"status","type":"text","description":"Status."},{"name":"placement","type":"text","description":"Placement."},{"name":"notes","type":"text","description":"Notes."}],"returns":"void","signature":"deviceDiscoveryRecord(text backend, text family, text vendor, text status, text placement, text notes)","description":"Device discovery record.","tags":["thing","constructor","compute.device"],"updated":"2026-09-09"},{"name":"IsCpu","kind":"method","parameters":[],"returns":"bool","signature":"IsCpu() returns bool","description":"Is cpu.","tags":["thing","method","compute.device"],"exampleId":"method-IsCpu-7","updated":"2026-09-09"},{"name":"IsGpu","kind":"method","parameters":[],"returns":"bool","signature":"IsGpu() returns bool","description":"Is gpu.","tags":["thing","method","compute.device"],"exampleId":"method-IsGpu-8","updated":"2026-09-09"},{"name":"IsAccelerator","kind":"method","parameters":[],"returns":"bool","signature":"IsAccelerator() returns bool","description":"Is accelerator.","tags":["thing","method","compute.device"],"exampleId":"method-IsAccelerator-9","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-10","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":3,"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 deviceDiscoveryRecord","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.\ndeviceDiscoveryRecord sample = deviceDiscoveryRecord(\"cpu-oracle\", \"cpu\", \"vendor\", \"ready\", \"placement\", \"notes\")\nConsole.Log(Text.From(sample.backend))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicediscoveryrecord\"\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":"e2be5830647a96e97d23627a49c78837e0614bfe6614054b3fa309b90b4d8551","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsCpu-7","title":"deviceDiscoveryRecord.IsCpu","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 cpu.\ndeviceDiscoveryRecord instance = deviceDiscoveryRecord(\"cpu-oracle\", \"cpu\", \"vendor\", \"ready\", \"placement\", \"notes\")\nbool result = instance.IsCpu()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicediscoveryrecord\"\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":"f49113e38e7d672fbed13760ce4d9e72ac0da6dd0bc20256ad4fcebd341df8fe","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsGpu-8","title":"deviceDiscoveryRecord.IsGpu","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 gpu.\ndeviceDiscoveryRecord instance = deviceDiscoveryRecord(\"cpu-oracle\", \"cpu\", \"vendor\", \"ready\", \"placement\", \"notes\")\nbool result = instance.IsGpu()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicediscoveryrecord\"\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":"ca951aadebbccb8b297532336e31da569e0978d384ab927ae3faa0d1ddb041fb","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-IsAccelerator-9","title":"deviceDiscoveryRecord.IsAccelerator","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 accelerator.\ndeviceDiscoveryRecord instance = deviceDiscoveryRecord(\"cpu-oracle\", \"cpu\", \"vendor\", \"ready\", \"placement\", \"notes\")\nbool result = instance.IsAccelerator()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicediscoveryrecord\"\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":"92632de9875cb85de3909d97417074946e72d752d4333cc0fb914ac95b71a6bb","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-10","title":"deviceDiscoveryRecord.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.\ndeviceDiscoveryRecord instance = deviceDiscoveryRecord(\"cpu-oracle\", \"cpu\", \"vendor\", \"ready\", \"placement\", \"notes\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicediscoveryrecord\"\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":"0da4dc9060e7caf2a4171b8e212584004274cb3705c067578db982b416339e61","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["backend","family","vendor","status","placement","notes","deviceDiscoveryRecord","IsCpu","IsGpu","IsAccelerator","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.device--deviceDiscoveryRecord","json":"https://demonhunterlabs.com/reference/items/compute.device--deviceDiscoveryRecord.json","markdown":"https://demonhunterlabs.com/reference/text/compute.device--deviceDiscoveryRecord.md"}
