sema-docs 1.23.0

Canonical structured documentation for Sema builtins/special forms; powers LSP hover/completion and REPL apropos
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
---
name: "message/with-image"
module: "message"
params: [{ name: role, type: keyword }, { name: text, type: string }, { name: image, type: bytevector }, { name: opts, type: map }]
returns: "message"
---

Build a multimodal message with text plus an attached image. Role is `:system`, `:user`, `:assistant`, or `:tool`; the image is a bytevector that is base64-encoded. The media type is auto-detected unless overridden via opts `:media-type`.

```sema
(message/with-image :user "Describe this picture" png-bytes {:media-type "image/png"})
```