Add Render Preview API endpoint for prompt assembly visibility #25
Labels
No labels
audit-2025-12-03
component/api
component/commands
component/llm
component/memory
component/tick-loop
component/tools
priority
high
priority
low
status
in-progress
status
needs-info
status
needs-triage
status
on-hold
type
bug
type
documentation
type
enhancement
type
feature
type
refactor
type
test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
blightbow/evennia_ai#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Add a
/workbench/preview/endpoint that renders a sample prompt output, showing users exactly how their component configuration will be assembled into an LLM prompt.Background
This is Phase 2 of the terminal component separation work from #16. With terminal components now handled implicitly by runtime state, users need visibility into how their prompt will actually render.
Requirements
New Endpoint
GET /api/ai-assistants/{key}/workbench/preview/context_type(required)Response Format
Mock Data
Use representative mock data for runtime components:
pending_event: Sample game eventtool_result: Sample tool responseconversation_history: Sample dialogueImplementation Notes
build_llm_messages()logic with mock inputsRelated