def send.raw

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

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

393# Any request body, as for tools or images, and the reply as JSON.
394def send.raw(c: Client, v: Json.Val) -> IO(Client & Result<&1, &1, Err, Json.Val>):
395  do IO<Client & Result<&1, &1, Err, Json.Val>>:
396    x : Client & Result<&1, &1, Err, Bytes.Bytes> <- call(c, Json.encode.bytes(v))
397    return raw.done(x)

Uses (12)

Used by (0)

No other definition uses this definition.