resolveSystemPromptText
resolveSystemPromptText(
systemPrompt):string
Defined in: packages/core/src/agent/resolve-system-prompt.ts:14
Resolve an agent’s system prompt to plain text for the AI SDK system option.
Templates render with their demo data when present, otherwise with an empty
object. On a new memoryScope, the resolved text is persisted as the first
stored message; later episodes reuse that pinned prompt.
Parameters
Section titled “Parameters”systemPrompt
Section titled “systemPrompt”Returns
Section titled “Returns”string