{"id":"compute.graph--portableGraphNode","name":"portableGraphNode","owner":"yeho","package":"compute.graph","kind":"thing","signature":"external thing portableGraphNode","description":"A portable graph node record carrying name, kind, kernelName, inputs, outputs, and related state.","context":"Describe compute work as an explicit graph with package-owned validation and scheduling metadata.","parameters":[],"returns":"void","members":[{"name":"name","kind":"field","type":"text","description":"Stores name as text.","signature":"text name","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"kind","kind":"field","type":"text","description":"Stores kind as text.","signature":"text kind","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"kernelName","kind":"field","type":"text","description":"Stores kernel name as text.","signature":"text kernelName","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"inputs","kind":"field","type":"list of text","description":"Stores inputs as list of text.","signature":"list of text inputs","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"outputs","kind":"field","type":"list of text","description":"Stores outputs as list of text.","signature":"list of text outputs","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"mutations","kind":"field","type":"list of text","description":"Stores mutations as list of text.","signature":"list of text mutations","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"dependencies","kind":"field","type":"list of text","description":"Stores dependencies as list of text.","signature":"list of text dependencies","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"effect","kind":"field","type":"text","description":"Stores effect as text.","signature":"text effect","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"requestedDevice","kind":"field","type":"text","description":"Stores requested device as text.","signature":"text requestedDevice","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"fallbackAllowed","kind":"field","type":"bool","description":"Stores fallback allowed as bool.","signature":"bool fallbackAllowed","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"cacheable","kind":"field","type":"bool","description":"Stores cacheable as bool.","signature":"bool cacheable","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"fusionGroup","kind":"field","type":"text","description":"Stores fusion group as text.","signature":"text fusionGroup","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"specializationKey","kind":"field","type":"text","description":"Stores specialization key as text.","signature":"text specializationKey","tags":["thing","field","compute.graph"],"updated":"2026-09-09"},{"name":"portableGraphNode","kind":"constructor","parameters":[{"name":"name","type":"text","description":"Name."},{"name":"kind","type":"text","description":"Kind."},{"name":"kernelName","type":"text","description":"Kernel name."},{"name":"inputs","type":"list of text","description":"Inputs."},{"name":"outputs","type":"list of text","description":"Outputs."},{"name":"mutations","type":"list of text","description":"Mutations."},{"name":"dependencies","type":"list of text","description":"Dependencies."},{"name":"effect","type":"text","description":"Effect."},{"name":"requestedDevice","type":"text","description":"Requested device."},{"name":"fallbackAllowed","type":"bool","description":"Fallback allowed."},{"name":"cacheable","type":"bool","description":"Cacheable."},{"name":"fusionGroup","type":"text","description":"Fusion group."},{"name":"specializationKey","type":"text","description":"Specialization key."}],"returns":"void","signature":"portableGraphNode(text name, text kind, text kernelName, list of text inputs, list of text outputs, list of text mutations, list of text dependencies, text effect, text requestedDevice, bool fallbackAllowed, bool cacheable, text fusionGroup, text specializationKey)","description":"Portable graph node.","tags":["thing","constructor","compute.graph"],"updated":"2026-09-09"},{"name":"Describe","kind":"method","parameters":[],"returns":"text","signature":"Describe() returns text","description":"Describe.","tags":["thing","method","compute.graph"],"exampleId":"method-Describe-14","updated":"2026-09-09"}],"tags":["compute","compute.graph","cpu","graph","method","source-example","thing","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/compute/graph/portable_contract.yh","line":92,"sha256":"7d368be12911192817194c8170d8f193f9b1b7d33e85834c9f44df101d82cf76"},"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 portableGraphNode","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using compute.graph\n\n// Describe compute work as an explicit graph with package-owned validation and scheduling metadata.\nportableGraphNode sample = portableGraphNode(\"Nova\", \"kind\", \"kernel Name\", [], [], [], [], \"effect\", \"requested Device\", true, true, \"fusion Group\", \"specialization Key\")\nConsole.Log(Text.From(sample.name))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portablegraphnode\"\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.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\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":"38750979890da02c180acef3798508453bab94c3d2821374c2a9d8539814ac70","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Describe-14","title":"portableGraphNode.Describe","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using compute.graph\n\n// Describe.\nportableGraphNode instance = portableGraphNode(\"Nova\", \"kind\", \"kernel Name\", [], [], [], [], \"effect\", \"requested Device\", true, true, \"fusion Group\", \"specialization Key\")\ntext result = instance.Describe()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.compute_graph__portablegraphnode\"\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.graph\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/graph\"\n\n[[dependencies]]\npackage = \"compute.kernels\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/compute/kernels\"\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":"129235b414e54d4359afe3ac4e151b6a4ab28ce575ec97919dd2eaecfc6423f2","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["name","kind","kernelName","inputs","outputs","mutations","dependencies","effect","requestedDevice","fallbackAllowed","cacheable","fusionGroup","specializationKey","portableGraphNode","Describe"],"url":"https://demonhunterlabs.com/academy/api?item=compute.graph--portableGraphNode","json":"https://demonhunterlabs.com/reference/items/compute.graph--portableGraphNode.json","markdown":"https://demonhunterlabs.com/reference/text/compute.graph--portableGraphNode.md"}
