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

Send a single prompt to the default provider and return the completion text. The first argument is a prompt string (or a prompt value). The optional opts map accepts `:model`, `:max-tokens` (defaults to 4096), `:temperature`, and `:system`. Tracks token usage.

```sema
(llm/complete "Write a haiku about autumn" {:max-tokens 100 :temperature 0.7})
```