sema-docs 1.24.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: "llm/summarize"
module: "llm"
params: [{ name: text, type: string }, { name: opts, type: map }]
returns: "string"
---

Summarize a block of text using the default provider. The opts map accepts `:model`, `:max-length` (target word count), and `:style` (`"paragraph"` default, `"bullet-points"`/`"bullets"`, or `"one-line"`). Returns the summary string.

```sema
(llm/summarize long-article {:style "bullet-points" :max-length 100})
```