Light Dark

Functions

ns alias

Alias of ::ai::agent::render/

Neutral rendering helpers for agent replies.

Concrete transports can render Reply into HTML, mrkdwn, plain text, JSON cards, or another surface-specific format.

text-reply

fn (text: Str): Reply

Build a plain text Reply.

truncate-text

fn (text: Str, max-chars: Int, suffix: Str): Str

Truncate text to max-chars, appending suffix when truncation occurs.

with-sources

fn (reply: Reply, sources: Vec): Reply

Attach source records to a Reply.

Types

Reply

Reply type {
    text: Str,
    format: Str?,
    sources: Vec?,
    metadata: Map?
}

Neutral reply record before transport-specific rendering.