def send

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

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

410# One whole reply.
411def send(c: Client, req: Req) -> IO(Client & Result<&1, &1, Err, Reply>):
412  Client{+api, b, h, ms, n, http} = c
413  do IO<Client & Result<&1, &1, Err, Reply>>:
414    x : Client & Result<&1, &1, Err, Bytes.Bytes> <- call(Client{api, b, h, ms, n, http}, Json.encode.bytes(body(api, req, False{})))
415    return send.done(api, x)

Uses (15)

Used by (0)

No other definition uses this definition.