withInternalFlowMarker
withInternalFlowMarker(
systemPrompt:string):string
Defined in: src/lib/internalFlowMarker.ts:58
Prepend INTERNAL_FLOW_MARKER to a system prompt. Idempotent — a prompt that already carries the marker is returned unchanged, so applying it at more than one layer (or on a retry of an already-marked request) cannot stack it.
Parameters
| Parameter | Type |
|---|---|
|
|
|
Returns
string
Last updated on