Skip to main content
Manage prompt and resource templates.

tai templates clear-cache

Clear the template render cache. Example: tai templates clear-cache

tai templates delete

Delete a template. Example: tai templates delete prompts/greeting.md

tai templates delete-dir

Delete every template under a directory. A directory that matches no templates is a loud 404 (unlike delete, which is idempotent for an absent single key). Example: tai templates delete-dir prompts/archive

tai templates get

Fetch a template’s content and its input schema. Example: tai templates get prompts/greeting.md

tai templates list

List the available templates. Example: tai templates list

tai templates render

Render a templated text by id or inline content with kwargs. Example: tai templates render --text '{"id": "prompts/greeting.md", "kwargs": {"name": "Ada"}}'

tai templates upload

Upload (create or overwrite) a template from a local file. Example: tai templates upload prompts/greeting.md --file greeting.md