Skip to content

Commit 224af6f

Browse files
committed
chore: add changeset and server-changes for AI prompt management
1 parent 3e63357 commit 224af6f

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.changeset/ai-prompt-management.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@trigger.dev/sdk": patch
3+
---
4+
5+
Define and manage AI prompts with `prompts.define()`. Create typesafe prompt templates with variables, resolve them at runtime, and manage versions and overrides from the dashboard without redeploying.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
area: webapp
3+
type: feature
4+
---
5+
6+
AI prompt management dashboard and enhanced span inspectors.
7+
8+
**Prompt management:**
9+
- Prompts list page with version status, model, override indicators, and 24h usage sparklines
10+
- Prompt detail page with template viewer, variable preview, version history timeline, and override editor
11+
- Create, edit, and remove overrides to change prompt content or model without redeploying
12+
- Promote any code-deployed version to current
13+
- Generations tab with infinite scroll, live polling, and inline span inspector
14+
- Per-prompt metrics: total generations, avg tokens, avg cost, latency, with version-level breakdowns
15+
16+
**AI span inspectors:**
17+
- Custom inspectors for `ai.generateText`, `ai.streamText`, `ai.generateObject`, `ai.streamObject` parent spans
18+
- `ai.toolCall` inspector showing tool name, call ID, and input arguments
19+
- `ai.embed` inspector showing model, provider, and input text
20+
- Prompt tab on AI spans linking to prompt version with template and input variables
21+
- Compact timestamp and duration header on all AI span inspectors
22+
23+
**AI metrics dashboard:**
24+
- Operations, Providers, and Prompts filters on the AI Metrics dashboard
25+
- Cost by prompt widget
26+
- "AI" section in the sidebar with Prompts and AI Metrics links
27+
28+
**Other improvements:**
29+
- Resizable panel sizes now persist across page refreshes
30+
- Fixed `<div>` inside `<p>` DOM nesting warnings in span titles and chat messages

0 commit comments

Comments
 (0)