Llm.doc: def of bend-kit-llm@0.13.0.1 Import: import bend-kit-llm@0.13.0.1/llm.bend as Llm Lines 153-157 of bend-kit-llm@0.13.0.1/llm.bend: https://jend.leeeet.dev/read.txt?path=bend-kit-llm@0.13.0.1/llm.bend&start_line=153&end_line=157 import Base import bend-kit-json@0.7.0.0/json.bend as Json import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes # Every non-null leaf of a JSON text in document order, keyed by its path, as ("content.0.text", "Hi"). # Strings are decoded; numbers keep their text. None when b is not JSON. Each value takes a byte, so n + 1 steps suffice. def doc(b: Bytes.Bytes) -> Maybe<&2, List<&2, Leaf>>: Bytes.Bytes{+n, buf} = b doc.of(n, Json.parse.bytes(Bytes.Bytes{n, buf})) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=bend-kit-bytes@0.3.3.0/bytes.bend&name=Bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-json@0.7.0.0/json.bend&name=parse.bytes https://jend.leeeet.dev/definition.txt?path=bend-kit-llm@0.13.0.1/llm.bend&name=Leaf https://jend.leeeet.dev/definition.txt?path=bend-kit-llm@0.13.0.1/llm.bend&name=doc.of