Skip to contents

Attach documents, PDFs, uploaded-file references, or other native ellmer Content objects. Requires an ellmer-backed provider. Ellmer handles upload lifecycle and provider-specific content support. Content is attached to the first request and retained in native history during feedback and retries.

Usage

add_content(prompt, content)

Arguments

prompt

A string or a tidyprompt() object.

content

An ellmer Content object or a nonempty list of Content objects.

Value

A tidyprompt() with an attachment prompt_wrap().

See also