def raw.of

bend-kit-llm@0.13.0.1 · llm.bend:382

import bend-kit-llm@0.13.0.1/llm.bend as Llm
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

382def raw.of(r: Result<&1, &1, Err, Bytes.Bytes>) -> Result<&1, &1, Err, Json.Val>:
383  match r:
384    case Fail{e}:
385      Fail{e}
386    case Done{b}:
387      raw.copy(Bytes.slice(b, 0, 4294967295))

Uses (6)

Used by (1)