{"id":"compute.device--deviceNegotiationProfile","name":"deviceNegotiationProfile","owner":"yeho","package":"compute.device","kind":"thing","signature":"external thing deviceNegotiationProfile","description":"A device negotiation profile record carrying backend, memoryLimitMb, precisions, transferCostScore, featureGaps, 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":"memoryLimitMb","kind":"field","type":"int","description":"Stores memory limit mb as int.","signature":"int memoryLimitMb","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"precisions","kind":"field","type":"list of text","description":"Stores precisions as list of text.","signature":"list of text precisions","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"transferCostScore","kind":"field","type":"int","description":"Stores transfer cost score as int.","signature":"int transferCostScore","tags":["thing","field","compute.device"],"updated":"2026-09-09"},{"name":"featureGaps","kind":"field","type":"list of text","description":"Stores feature gaps as list of text.","signature":"list of text featureGaps","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":"deviceNegotiationProfile","kind":"constructor","parameters":[{"name":"backend","type":"text","description":"Backend."},{"name":"memoryLimitMb","type":"int","description":"Memory limit mb."},{"name":"transferCostScore","type":"int","description":"Transfer cost score."},{"name":"notes","type":"text","description":"Notes."}],"returns":"void","signature":"deviceNegotiationProfile(text backend, int memoryLimitMb, int transferCostScore, text notes)","description":"Device negotiation profile.","tags":["thing","constructor","compute.device"],"updated":"2026-09-09"},{"name":"AddPrecision","kind":"method","parameters":[{"name":"precision","type":"text","description":"Precision."}],"returns":"void","signature":"AddPrecision(text precision)","description":"Add precision.","tags":["thing","method","compute.device"],"exampleId":"method-AddPrecision-7","updated":"2026-09-09"},{"name":"AddFeatureGap","kind":"method","parameters":[{"name":"gap","type":"text","description":"Gap."}],"returns":"void","signature":"AddFeatureGap(text gap)","description":"Add feature gap.","tags":["thing","method","compute.device"],"exampleId":"method-AddFeatureGap-8","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-9","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":207,"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 deviceNegotiationProfile","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.\ndeviceNegotiationProfile sample = deviceNegotiationProfile(\"cpu-oracle\", 1, 1, \"notes\")\nConsole.Log(Text.From(sample.backend))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicenegotiationprofile\"\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":"ede8180e72b0d07830843b1585878da538306f25bd342d7bf4393f7a8d2021c1","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AddPrecision-7","title":"deviceNegotiationProfile.AddPrecision","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Add precision.\ndeviceNegotiationProfile instance = deviceNegotiationProfile(\"cpu-oracle\", 1, 1, \"notes\")\ntext argument_precision = \"argument precision\"\ninstance.AddPrecision(argument_precision)\nConsole.Log(\"AddPrecision completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicenegotiationprofile\"\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":"eba37c981aac0a85147c6c5d05859afa8b83c74adcabd709e5847e67f2e13066","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AddFeatureGap-8","title":"deviceNegotiationProfile.AddFeatureGap","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.device\n\n// Add feature gap.\ndeviceNegotiationProfile instance = deviceNegotiationProfile(\"cpu-oracle\", 1, 1, \"notes\")\ntext argument_gap = \"argument gap\"\ninstance.AddFeatureGap(argument_gap)\nConsole.Log(\"AddFeatureGap completed\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicenegotiationprofile\"\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":"545c6b78d5e869ceac56b1f369e31755b147482f977de1302ef173203f0f209e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-9","title":"deviceNegotiationProfile.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.\ndeviceNegotiationProfile instance = deviceNegotiationProfile(\"cpu-oracle\", 1, 1, \"notes\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_device__devicenegotiationprofile\"\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":"2a647aeb538adaf4802af70327e169b637fe85df322565e68c4bbc09c10c67a1","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["backend","memoryLimitMb","precisions","transferCostScore","featureGaps","notes","deviceNegotiationProfile","AddPrecision","AddFeatureGap","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.device--deviceNegotiationProfile","json":"https://demonhunterlabs.com/reference/items/compute.device--deviceNegotiationProfile.json","markdown":"https://demonhunterlabs.com/reference/text/compute.device--deviceNegotiationProfile.md"}
