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
13
14
---
name: "llm/send"
module: "llm"
params: [{ name: prompt, type: prompt }, { name: opts, type: map }]
returns: "string"
---

Send a structured prompt value (built with the prompt helpers) to the default provider and return the completion. The first argument must be a prompt value; the optional opts map carries model/generation options.

```sema
(llm/send (prompt (system "You are a helpful assistant.")
                  (user "Summarize the plot of Hamlet in one line."))
          {:max-tokens 80})
```