def reply.got
import bend-kit-llm@0.13.0.1/llm.bend as Llmimport Base
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-encoding@0.5.0.0/encoding.bend as Enc
198def reply.got(api: Api, b: Bytes.Bytes, m: Maybe<&2, List<&2, Leaf>>) -> Result<&1, &1, Err, Reply>:
199 match m:
200 case None{}:
201 Fail{ErrReply{Enc.utf8.decode(b)}}
202 case Some{d}:
203 Done{reply.of(api, d)}