renderSystemPrompt function exported ✓ 100.0%
Last updated: 2026-03-01T23:25:47.071Z
Metrics
LOC: 5
Complexity: 1
Params: 3
Coverage: 100.0% (1/1 lines, 21x executed)
Signature
renderSystemPrompt(
prompt: StructuredPrompt<TInput, TOutput>,
): : string
Summary
Renders a system-level prompt from a StructuredPrompt. Useful for APIs that support a separate systemPrompt channel (e.g. LanguageModel.create({ systemPrompt })). Delegates to renderPromptBase — same content, different usage context.
Source Code
export function renderSystemPrompt<TInput, TOutput>(
prompt: StructuredPrompt<TInput, TOutput>,
): string {
return renderPromptBase(prompt);
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| renderPromptBase | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| getLanguageModelApi | uses |
| getLanguageModelApi | uses |
| makePrompt | uses |