splitStoredSystemPrompt
splitStoredSystemPrompt(
messages):object
Defined in: packages/core/src/agent/resolve-system-prompt.ts:73
Split a stored transcript into an optional pinned system prompt (first message) and the user/assistant/tool turns that follow.
Parameters
Section titled “Parameters”messages
Section titled “messages”Returns
Section titled “Returns”object
agentId
Section titled “agentId”agentId:
string|null
systemPrompt
Section titled “systemPrompt”systemPrompt:
string|null
transcript
Section titled “transcript”transcript:
ModelMessage[]